Jakub Pavlik | 0647d43 | 2016-09-30 11:47:12 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | galera_server_cluster_name: galeracluster |
| 4 | galera_server_bind_port: 3306 |
| 5 | galera_server_admin_user: root |
Stanislav Riazanov | 7205cbf | 2018-12-18 14:38:29 +0400 | [diff] [blame] | 6 | galera_server_sst_user: sstuser |
| 7 | galera_server_sst_password: ${_param:galera_server_admin_password} |
Dmitry Kalashnik | d4e5f47 | 2017-08-09 14:28:17 +0400 | [diff] [blame] | 8 | galera_max_connections: 20000 |
| 9 | galera_innodb_buffer_pool_size: 3138M |
Dennis Dmitriev | 2c57289 | 2018-03-05 23:32:34 +0200 | [diff] [blame] | 10 | galera_innodb_read_io_threads: 8 |
| 11 | galera_innodb_write_io_threads: 8 |
| 12 | galera_wsrep_slave_threads: 8 |
| 13 | galera_xtrabackup_parallel: 4 |
Michal Kobus | 6a33c42 | 2018-09-28 14:32:57 +0200 | [diff] [blame] | 14 | galera_error_log_enabled: true |
| 15 | galera_error_log_path: /var/log/mysql/error.log |
Jakub Pavlik | 0647d43 | 2016-09-30 11:47:12 +0200 | [diff] [blame] | 16 | kubernetes: |
| 17 | control: |
| 18 | configmap: |
| 19 | galera-master: |
| 20 | grains: |
| 21 | os_family: Debian |
| 22 | pillar: |
| 23 | galera: |
| 24 | master: |
| 25 | enabled: true |
| 26 | name: ${_param:galera_server_cluster_name} |
| 27 | bind: |
| 28 | address: 0.0.0.0 |
| 29 | port: ${_param:galera_server_bind_port} |
| 30 | maintenance_password: ${_param:galera_server_maintenance_password} |
| 31 | admin: |
| 32 | user: ${_param:galera_server_admin_user} |
| 33 | password: ${_param:galera_server_admin_password} |
Stanislav Riazanov | 7205cbf | 2018-12-18 14:38:29 +0400 | [diff] [blame] | 34 | sst: |
| 35 | user: ${_param:galera_server_sst_user} |
| 36 | password: ${_param:galera_server_sst_password} |
Jakub Pavlik | 0647d43 | 2016-09-30 11:47:12 +0200 | [diff] [blame] | 37 | members: |
| 38 | - host: ${_param:mysql_service_host01} |
| 39 | port: 4567 |
| 40 | - host: ${_param:mysql_service_host02} |
| 41 | port: 4567 |
| 42 | - host: ${_param:mysql_service_host03} |
| 43 | port: 4567 |
Dmitry Kalashnik | d4e5f47 | 2017-08-09 14:28:17 +0400 | [diff] [blame] | 44 | max_connections: ${_param:galera_max_connections} |
| 45 | innodb_buffer_pool_size: ${_param:galera_innodb_buffer_pool_size} |
Dennis Dmitriev | 2c57289 | 2018-03-05 23:32:34 +0200 | [diff] [blame] | 46 | innodb_read_io_threads: ${_param:galera_innodb_read_io_threads} |
| 47 | innodb_write_io_threads: ${_param:galera_innodb_write_io_threads} |
| 48 | wsrep_slave_threads: ${_param:galera_wsrep_slave_threads} |
| 49 | xtrabackup_parallel: ${_param:galera_xtrabackup_parallel} |
| 50 | error_log_enabled: ${_param:galera_error_log_enabled} |
Michal Kobus | 6a33c42 | 2018-09-28 14:32:57 +0200 | [diff] [blame] | 51 | error_log_path: ${_param:galera_error_log_path} |
Jakub Pavlik | 0647d43 | 2016-09-30 11:47:12 +0200 | [diff] [blame] | 52 | mysql: |
| 53 | server: |
| 54 | users: |
Stanislav Riazanov | 7205cbf | 2018-12-18 14:38:29 +0400 | [diff] [blame] | 55 | - name: ${_param:galera_server_sst_user} |
| 56 | password: ${_param:galera_server_sst_password} |
| 57 | host: localhost |
| 58 | database: '*.*' |
| 59 | grants: |
| 60 | - PROCESS |
| 61 | - RELOAD |
| 62 | - LOCK TABLES |
| 63 | - REPLICATION CLIENT |