Saltstack Official Galera Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

container.yml 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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: false
  13. kubernetes:
  14. control:
  15. configmap:
  16. galera-master:
  17. grains:
  18. os_family: Debian
  19. pillar:
  20. galera:
  21. master:
  22. enabled: true
  23. name: ${_param:galera_server_cluster_name}
  24. bind:
  25. address: 0.0.0.0
  26. port: ${_param:galera_server_bind_port}
  27. maintenance_password: ${_param:galera_server_maintenance_password}
  28. admin:
  29. user: ${_param:galera_server_admin_user}
  30. password: ${_param:galera_server_admin_password}
  31. members:
  32. - host: ${_param:mysql_service_host01}
  33. port: 4567
  34. - host: ${_param:mysql_service_host02}
  35. port: 4567
  36. - host: ${_param:mysql_service_host03}
  37. port: 4567
  38. max_connections: ${_param:galera_max_connections}
  39. innodb_buffer_pool_size: ${_param:galera_innodb_buffer_pool_size}
  40. innodb_read_io_threads: ${_param:galera_innodb_read_io_threads}
  41. innodb_write_io_threads: ${_param:galera_innodb_write_io_threads}
  42. wsrep_slave_threads: ${_param:galera_wsrep_slave_threads}
  43. xtrabackup_parallel: ${_param:galera_xtrabackup_parallel}
  44. error_log_enabled: ${_param:galera_error_log_enabled}
  45. mysql:
  46. server:
  47. users:
  48. - name: haproxy
  49. host: localhost
  50. - name: haproxy
  51. host: '%'