Saltstack Official Galera Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.1KB

  1. parameters:
  2. _param:
  3. galera_server_cluster_name: galeracluster
  4. galera_server_bind_port: 3306
  5. galera_server_admin_user: root
  6. galera_max_connections: 20000
  7. galera_innodb_buffer_pool_size: 3138M
  8. galera_innodb_read_io_threads: 8
  9. galera_innodb_write_io_threads: 8
  10. galera_wsrep_slave_threads: 8
  11. galera_xtrabackup_parallel: 4
  12. galera_error_log_enabled: true
  13. galera_error_log_path: /var/log/mysql/error.log
  14. kubernetes:
  15. control:
  16. configmap:
  17. galera-master:
  18. grains:
  19. os_family: Debian
  20. pillar:
  21. galera:
  22. master:
  23. enabled: true
  24. name: ${_param:galera_server_cluster_name}
  25. bind:
  26. address: 0.0.0.0
  27. port: ${_param:galera_server_bind_port}
  28. maintenance_password: ${_param:galera_server_maintenance_password}
  29. admin:
  30. user: ${_param:galera_server_admin_user}
  31. password: ${_param:galera_server_admin_password}
  32. members:
  33. - host: ${_param:mysql_service_host01}
  34. port: 4567
  35. - host: ${_param:mysql_service_host02}
  36. port: 4567
  37. - host: ${_param:mysql_service_host03}
  38. port: 4567
  39. max_connections: ${_param:galera_max_connections}
  40. innodb_buffer_pool_size: ${_param:galera_innodb_buffer_pool_size}
  41. innodb_read_io_threads: ${_param:galera_innodb_read_io_threads}
  42. innodb_write_io_threads: ${_param:galera_innodb_write_io_threads}
  43. wsrep_slave_threads: ${_param:galera_wsrep_slave_threads}
  44. xtrabackup_parallel: ${_param:galera_xtrabackup_parallel}
  45. error_log_enabled: ${_param:galera_error_log_enabled}
  46. error_log_path: ${_param:galera_error_log_path}
  47. mysql:
  48. server:
  49. users:
  50. - name: haproxy
  51. host: localhost
  52. - name: haproxy
  53. host: '%'