Saltstack Official Galera Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

master_cluster.sls 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. galera:
  2. master:
  3. enabled: true
  4. name: galeracluster
  5. bind:
  6. address: 127.0.0.1
  7. port: 3306
  8. maintenance_password: password
  9. admin:
  10. user: root
  11. password: password
  12. members:
  13. - host: 127.0.0.1
  14. port: 4567
  15. - host: 127.0.0.1
  16. port: 4567
  17. - host: 127.0.0.1
  18. port: 4567
  19. clustercheck:
  20. enabled: True
  21. user: clustercheck
  22. password: password
  23. available_when_donor: 1
  24. available_when_readonly: 1
  25. port: 9200
  26. max_connections: 20000
  27. innodb_buffer_pool_size: 3138M
  28. mysql:
  29. server:
  30. enabled: true
  31. bind:
  32. address: 0.0.0.0
  33. port: 3306
  34. protocol: tcp
  35. database:
  36. mydb:
  37. encoding: 'utf8'
  38. users:
  39. - name: haproxy
  40. host: localhost
  41. - name: haproxy
  42. host: '%'
  43. - name: haproxy
  44. host: 127.0.0.1
  45. - name: clustercheck
  46. #host: localhost
  47. password: password
  48. database: '*.*'
  49. grants: PROCESS
  50. - name: inspector
  51. host: 127.0.0.1
  52. password: password
  53. databases:
  54. - database: mydb
  55. table: mytable
  56. grant_option: True
  57. grants:
  58. - all privileges