blob: 2d563ef0908091483cb6ff86b916f55b87c37283 [file] [log] [blame]
Petr Jediný07dfda52017-06-17 13:51:58 +02001=============
2Panko Formula
3=============
4
5Panko is a component of the OpenStack Telemetry project and is designed to
6provide a metadata indexing, event storage service which enables users to
7capture the state information of OpenStack resources at a given time. Its aim
8is to enable a scalable means of storing both short and long term data for
9use cases such as auditing and system debugging.
10
11Sample pillars
12==============
13
14Single panko service
15
16.. code-block:: yaml
17
18 panko:
19 server:
20 enabled: true
21 version: pike
22 database:
23 engine: mysql
24 host: 10.20.0.101
25 port: 3306
26 name: panko
27 user: panko
28 password: segreto
29 bind:
30 host: 10.20.0.102
31 port: 8977
32 identity:
33 engine: keystone
34 host: 10.20.0.101
35 port: 35357
36 user: panko
37 password: segreto
38 region: RegionOne
39 tenant: service
40 endpoint_type: internalURL
41 cache:
42 engine: memcached
43 members:
44 - host: 10.20.0.102
45 port: 11211
46 - host: 10.20.0.103
47 port: 11211
48 - host: 10.20.0.104
49 port: 11211
50
Mykyta Karpinc06d5e82018-07-17 17:00:51 +030051Setting event cleanup
52
53In order to allow events cleanup from one node of the cluster,
54server:role field should be set to primary and all others to
55secondary to avoid race conditions. On the example below
56expirer is set to run every day at 2:00 AM. By default
57it will be run every hour.
58
59.. code-block:: yaml
60
61 panko:
62 server:
63 role: primary
64 expirer:
65 cron:
66 minute: 0
67 hour: 2
68
69
sgarbuz49d5faa2018-05-15 13:16:33 +030070Enhanced logging with logging.conf
71----------------------------------
72
73By default logging.conf is disabled.
74
75That is possible to enable per-binary logging.conf with new variables:
76 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
77 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
78
79Only WatchedFileHandler and FluentHandler are available.
80
81Also it is possible to configure this with pillar:
82
83.. note:: This works only if service doesnt run under apache-wsgi
84
85.. code-block:: yaml
86
87 panko:
88 server:
89 logging:
90 log_appender: true
91 log_handlers:
92 watchedfile:
93 enabled: true
94 fluentd:
95 enabled: true
96
Oleksandr Shyshko3f852062018-09-10 14:20:22 +030097Enable x509 and ssl communication between Panko and Galera cluster.
98---------------------
99By default communication between Panko and Galera is unsecure.
100
101panko:
102 server:
103 database:
104 x509:
105 enabled: True
106
107You able to set custom certificates in pillar:
108
109panko:
110 server:
111 database:
112 x509:
113 cacert: (certificate content)
114 cert: (certificate content)
115 key: (certificate content)
116
117You can read more about it here:
118 https://docs.openstack.org/security-guide/databases/database-access-control.html
Petr Jediný07dfda52017-06-17 13:51:58 +0200119
Oleksandr Bryndziidcb7d7b2018-10-04 12:19:42 +0300120Panko server with memcached caching and security strategy:
121--------------------
122.. code-block:: yaml
123
124 panko:
125 server:
126 enabled: true
127 ...
128 cache:
129 engine: memcached
130 members:
131 - host: 127.0.0.1
132 port: 11211
133 - host: 127.0.0.1
134 port: 11211
135 security:
136 enabled: true
137 strategy: ENCRYPT
138 secret_key: secret
Petr Jediný07dfda52017-06-17 13:51:58 +0200139More information
140================
141
142* https://wiki.openstack.org/wiki/Telemetry
143* https://docs.openstack.org/developer/panko/
144* https://github.com/openstack/panko
145* https://bugs.launchpad.net/panko
146
147
148Documentation and Bugs
149======================
150
151To learn how to install and update salt-formulas, consult the documentation
152available online at:
153
154 http://salt-formulas.readthedocs.io/
155
156In the unfortunate event that bugs are discovered, they should be reported to
157the appropriate issue tracker. Use GitHub issue tracker for specific salt
158formula:
159
160 https://github.com/salt-formulas/salt-formula-panko/issues
161
162For feature requests, bug reports or blueprints affecting entire ecosystem,
163use Launchpad salt-formulas project:
164
165 https://launchpad.net/salt-formulas
166
167Developers wishing to work on the salt-formulas projects should always base
168their work on master branch and submit pull request against specific formula.
169
170You should also subscribe to mailing list (salt-formulas@freelists.org):
171
172 https://www.freelists.org/list/salt-formulas
173
174Any questions or feedback is always welcome so feel free to join our IRC
175channel:
176
177 #salt-formulas @ irc.freenode.net