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 |
| 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 Karpin | c06d5e8 | 2018-07-17 17:00:51 +0300 | [diff] [blame] | 51 | Setting event cleanup |
| 52 | |
| 53 | In order to allow events cleanup from one node of the cluster, |
| 54 | server:role field should be set to primary and all others to |
| 55 | secondary to avoid race conditions. On the example below |
| 56 | expirer is set to run every day at 2:00 AM. By default |
| 57 | it 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 | |
sgarbuz | 49d5faa | 2018-05-15 13:16:33 +0300 | [diff] [blame] | 70 | Enhanced logging with logging.conf |
| 71 | ---------------------------------- |
| 72 | |
| 73 | By default logging.conf is disabled. |
| 74 | |
| 75 | That 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 | |
| 79 | Only WatchedFileHandler and FluentHandler are available. |
| 80 | |
| 81 | Also 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 Shyshko | 3f85206 | 2018-09-10 14:20:22 +0300 | [diff] [blame] | 97 | Enable x509 and ssl communication between Panko and Galera cluster. |
| 98 | --------------------- |
| 99 | By default communication between Panko and Galera is unsecure. |
| 100 | |
| 101 | panko: |
| 102 | server: |
| 103 | database: |
| 104 | x509: |
| 105 | enabled: True |
| 106 | |
| 107 | You able to set custom certificates in pillar: |
| 108 | |
| 109 | panko: |
| 110 | server: |
| 111 | database: |
| 112 | x509: |
| 113 | cacert: (certificate content) |
| 114 | cert: (certificate content) |
| 115 | key: (certificate content) |
| 116 | |
| 117 | You can read more about it here: |
| 118 | https://docs.openstack.org/security-guide/databases/database-access-control.html |
Petr Jediný | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 119 | |
Oleksandr Bryndzii | dcb7d7b | 2018-10-04 12:19:42 +0300 | [diff] [blame^] | 120 | Panko 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ý | 07dfda5 | 2017-06-17 13:51:58 +0200 | [diff] [blame] | 139 | More 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 | |
| 148 | Documentation and Bugs |
| 149 | ====================== |
| 150 | |
| 151 | To learn how to install and update salt-formulas, consult the documentation |
| 152 | available online at: |
| 153 | |
| 154 | http://salt-formulas.readthedocs.io/ |
| 155 | |
| 156 | In the unfortunate event that bugs are discovered, they should be reported to |
| 157 | the appropriate issue tracker. Use GitHub issue tracker for specific salt |
| 158 | formula: |
| 159 | |
| 160 | https://github.com/salt-formulas/salt-formula-panko/issues |
| 161 | |
| 162 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 163 | use Launchpad salt-formulas project: |
| 164 | |
| 165 | https://launchpad.net/salt-formulas |
| 166 | |
| 167 | Developers wishing to work on the salt-formulas projects should always base |
| 168 | their work on master branch and submit pull request against specific formula. |
| 169 | |
| 170 | You should also subscribe to mailing list (salt-formulas@freelists.org): |
| 171 | |
| 172 | https://www.freelists.org/list/salt-formulas |
| 173 | |
| 174 | Any questions or feedback is always welcome so feel free to join our IRC |
| 175 | channel: |
| 176 | |
| 177 | #salt-formulas @ irc.freenode.net |