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.

cluster.yml 1.2KB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. applications:
  2. - galera
  3. classes:
  4. - service.galera.support
  5. parameters:
  6. _param:
  7. galera_server_cluster_name: galeracluster
  8. galera_server_bind_address: ${_param:cluster_local_address}
  9. galera_server_bind_port: 3306
  10. galera_server_admin_user: root
  11. galera_max_connections: 20000
  12. galera_innodb_buffer_pool_size: 3138M
  13. galera:
  14. master:
  15. enabled: true
  16. name: ${_param:galera_server_cluster_name}
  17. bind:
  18. address: ${_param:galera_server_bind_address}
  19. port: ${_param:galera_server_bind_port}
  20. maintenance_password: ${_param:galera_server_maintenance_password}
  21. admin:
  22. user: ${_param:galera_server_admin_user}
  23. password: ${_param:galera_server_admin_password}
  24. members:
  25. - host: ${_param:cluster_node01_address}
  26. port: 4567
  27. - host: ${_param:cluster_node02_address}
  28. port: 4567
  29. - host: ${_param:cluster_node03_address}
  30. port: 4567
  31. max_connections: ${_param:galera_max_connections}
  32. innodb_buffer_pool_size: ${_param:galera_innodb_buffer_pool_size}
  33. mysql:
  34. server:
  35. users:
  36. - name: haproxy
  37. host: localhost
  38. - name: haproxy
  39. host: '%'
  40. - name: haproxy
  41. host: ${_param:cluster_local_address}