Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 1 | ============= |
| 2 | Panko Formula |
| 3 | ============= |
| 4 | |
| 5 | Panko is a component of the OpenStack Telemetry project and is designed to |
| 6 | provide a metadata indexing, event storage service which enables users to |
| 7 | capture the state information of OpenStack resources at a given time. Its aim |
| 8 | is to enable a scalable means of storing both short and long term data for |
| 9 | use cases such as auditing and system debugging. |
| 10 | |
| 11 | Sample pillars |
| 12 | ============== |
| 13 | |
| 14 | Single panko service |
| 15 | |
| 16 | .. code-block:: yaml |
| 17 | |
| 18 | panko: |
| 19 | server: |
| 20 | enabled: true |
| 21 | version: pike |
Dzmitry Stremkouski | 1c748e8 | 2018-10-25 16:48:44 +0200 | [diff] [blame] | 22 | enable_proxy_headers_parsing: True |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 23 | 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 Karpin | c06d5e8 | 2018-07-17 17:00:51 +0300 | [diff] [blame] | 52 | Setting event cleanup |
| 53 | |
| 54 | In order to allow events cleanup from one node of the cluster, |
| 55 | server:role field should be set to primary and all others to |
| 56 | secondary to avoid race conditions. On the example below |
| 57 | expirer is set to run every day at 2:00 AM. By default |
| 58 | it 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 | |
sgarbuz | 49d5faa | 2018-05-15 13:16:33 +0300 | [diff] [blame] | 71 | Enhanced logging with logging.conf |
| 72 | ---------------------------------- |
| 73 | |
| 74 | By default logging.conf is disabled. |
| 75 | |
| 76 | That 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 | |
| 80 | Only WatchedFileHandler and FluentHandler are available. |
| 81 | |
| 82 | Also 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 Shyshko | 3f85206 | 2018-09-10 14:20:22 +0300 | [diff] [blame] | 98 | Enable x509 and ssl communication between Panko and Galera cluster. |
| 99 | --------------------- |
| 100 | By default communication between Panko and Galera is unsecure. |
| 101 | |
| 102 | panko: |
| 103 | server: |
| 104 | database: |
| 105 | x509: |
| 106 | enabled: True |
| 107 | |
| 108 | You able to set custom certificates in pillar: |
| 109 | |
| 110 | panko: |
| 111 | server: |
| 112 | database: |
| 113 | x509: |
| 114 | cacert: (certificate content) |
| 115 | cert: (certificate content) |
| 116 | key: (certificate content) |
| 117 | |
| 118 | You can read more about it here: |
| 119 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 120 | |
Oleksandr Bryndzii | dcb7d7b | 2018-10-04 12:19:42 +0300 | [diff] [blame] | 121 | Panko 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 |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 140 | More information |
| 141 | ================ |
| 142 | |
| 143 | * https://wiki.openstack.org/wiki/Telemetry |
| 144 | * https://docs.openstack.org/developer/panko/ |
| 145 | * https://github.com/openstack/panko |
| 146 | * https://bugs.launchpad.net/panko |
| 147 | |
| 148 | |
| 149 | Documentation and Bugs |
| 150 | ====================== |
| 151 | |
| 152 | To learn how to install and update salt-formulas, consult the documentation |
| 153 | available online at: |
| 154 | |
| 155 | http://salt-formulas.readthedocs.io/ |
| 156 | |
| 157 | In the unfortunate event that bugs are discovered, they should be reported to |
| 158 | the appropriate issue tracker. Use GitHub issue tracker for specific salt |
| 159 | formula: |
| 160 | |
| 161 | https://github.com/salt-formulas/salt-formula-panko/issues |
| 162 | |
| 163 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 164 | use Launchpad salt-formulas project: |
| 165 | |
| 166 | https://launchpad.net/salt-formulas |
| 167 | |
| 168 | Developers wishing to work on the salt-formulas projects should always base |
| 169 | their work on master branch and submit pull request against specific formula. |
| 170 | |
| 171 | You should also subscribe to mailing list (salt-formulas@freelists.org): |
| 172 | |
| 173 | https://www.freelists.org/list/salt-formulas |
| 174 | |
| 175 | Any questions or feedback is always welcome so feel free to join our IRC |
| 176 | channel: |
| 177 | |
| 178 | #salt-formulas @ irc.freenode.net |