blob: ab06b19e6ae44db6ff6bf3746f3e622ed0f45826 [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
Dzmitry Stremkouski1c748e82018-10-25 16:48:44 +020022 enable_proxy_headers_parsing: True
Petr Jediný07dfda52017-06-17 13:51:58 +020023 database:
24 engine: mysql
25 host: 10.20.0.101
26 port: 3306
27 name: panko
28 user: panko
29 password: segreto
30 bind:
31 host: 10.20.0.102
32 port: 8977
33 identity:
34 engine: keystone
35 host: 10.20.0.101
36 port: 35357
37 user: panko
38 password: segreto
39 region: RegionOne
40 tenant: service
41 endpoint_type: internalURL
42 cache:
43 engine: memcached
44 members:
45 - host: 10.20.0.102
46 port: 11211
47 - host: 10.20.0.103
48 port: 11211
49 - host: 10.20.0.104
50 port: 11211
51
Mykyta Karpinc06d5e82018-07-17 17:00:51 +030052Setting event cleanup
53
54In order to allow events cleanup from one node of the cluster,
55server:role field should be set to primary and all others to
56secondary to avoid race conditions. On the example below
57expirer is set to run every day at 2:00 AM. By default
58it will be run every hour.
59
60.. code-block:: yaml
61
62 panko:
63 server:
64 role: primary
65 expirer:
66 cron:
67 minute: 0
68 hour: 2
69
70
sgarbuz49d5faa2018-05-15 13:16:33 +030071Enhanced logging with logging.conf
72----------------------------------
73
74By default logging.conf is disabled.
75
76That is possible to enable per-binary logging.conf with new variables:
77 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
78 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
79
80Only WatchedFileHandler and FluentHandler are available.
81
82Also it is possible to configure this with pillar:
83
84.. note:: This works only if service doesnt run under apache-wsgi
85
86.. code-block:: yaml
87
88 panko:
89 server:
90 logging:
91 log_appender: true
92 log_handlers:
93 watchedfile:
94 enabled: true
95 fluentd:
96 enabled: true
97
Oleksandr Shyshko3f852062018-09-10 14:20:22 +030098Enable x509 and ssl communication between Panko and Galera cluster.
99---------------------
100By default communication between Panko and Galera is unsecure.
101
102panko:
103 server:
104 database:
105 x509:
106 enabled: True
107
108You able to set custom certificates in pillar:
109
110panko:
111 server:
112 database:
113 x509:
114 cacert: (certificate content)
115 cert: (certificate content)
116 key: (certificate content)
117
118You can read more about it here:
119 https://docs.openstack.org/security-guide/databases/database-access-control.html
Petr Jediný07dfda52017-06-17 13:51:58 +0200120
Oleksandr Bryndziidcb7d7b2018-10-04 12:19:42 +0300121Panko server with memcached caching and security strategy:
122--------------------
123.. code-block:: yaml
124
125 panko:
126 server:
127 enabled: true
128 ...
129 cache:
130 engine: memcached
131 members:
132 - host: 127.0.0.1
133 port: 11211
134 - host: 127.0.0.1
135 port: 11211
136 security:
137 enabled: true
138 strategy: ENCRYPT
139 secret_key: secret
Oleksandr Pidrepnyi31c752a2019-05-13 18:19:30 +0300140
141Change default options using configmap template settings
142========================================================
143
144.. code-block:: yaml
145
146 panko:
147 server:
148 configmap:
149 DEFAULT:
150 api_paste_config: api_paste.ini
151 api:
152 default_api_return_limit: 100
153 storage:
154 max_retries: 10
155
Petr Jediný07dfda52017-06-17 13:51:58 +0200156More information
157================
158
159* https://wiki.openstack.org/wiki/Telemetry
160* https://docs.openstack.org/developer/panko/
161* https://github.com/openstack/panko
162* https://bugs.launchpad.net/panko