Saltstack Official Galera Formula
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

70 Zeilen
2.0KB

  1. # All files in this package is subject to the GPL v2 license
  2. # More information is in the COPYING file in the top directory of this package.
  3. # Copyright (C) 2011 severalnines.com
  4. {%- if pillar.galera.master is defined %}
  5. {%- from "galera/map.jinja" import master with context %}
  6. {%- set service = master %}
  7. {%- endif %}
  8. {%- if pillar.galera.slave is defined %}
  9. {%- from "galera/map.jinja" import slave with context %}
  10. {%- set service = slave %}
  11. {%- endif %}
  12. [mysqld_safe]
  13. syslog
  14. [mysqld]
  15. datadir=/var/lib/mysql
  16. bind-address={{ service.bind.address }}
  17. port=3306
  18. max_connections={{ service.get('max_connections', 20000) }}
  19. default-storage-engine=innodb
  20. binlog_format=ROW
  21. collation-server=utf8_general_ci
  22. init-connect='SET NAMES utf8'
  23. character-set-server=utf8
  24. default-storage-engine=innodb
  25. #log_error=/var/log/mysql/error.log
  26. skip-external-locking
  27. skip-name-resolve
  28. myisam_sort_buffer_size=64M
  29. wait_timeout=1800
  30. open_files_limit=102400
  31. table_open_cache=10000
  32. key_buffer_size=64M
  33. max_allowed_packet=256M
  34. query_cache_size=0
  35. query_cache_type=0
  36. innodb_file_format=Barracuda
  37. innodb_file_per_table=1
  38. innodb_buffer_pool_size=3138M
  39. innodb_log_file_size=627M
  40. innodb_read_io_threads=8
  41. innodb_write_io_threads=8
  42. innodb_io_capacity=500
  43. innodb_flush_log_at_trx_commit=2
  44. innodb_flush_method=O_DIRECT
  45. innodb_doublewrite=0
  46. innodb_autoinc_lock_mode=2
  47. innodb_locks_unsafe_for_binlog=1
  48. wsrep_cluster_address="gcomm://{% for member in service.members %}{{ member.host}}:4567{% if not loop.last %},{% endif %}{% endfor %}/?pc.wait_prim=no"
  49. wsrep_provider={{ service.wsrep_provider }}
  50. wsrep_cluster_name="openstack"
  51. wsrep_slave_threads=8
  52. wsrep_sst_method=xtrabackup-v2
  53. wsrep_sst_auth={{ service.admin.user }}:{{ service.admin.password }}
  54. wsrep_node_address={{ service.bind.address }}
  55. wsrep_provider_options="gcache.size = 256M"
  56. wsrep_provider_options="gmcast.listen_addr = tcp://{{ service.bind.address }}:4567"
  57. [xtrabackup]
  58. parallel=4
  59. [sst]
  60. streamfmt=xbstream
  61. transferfmt=socat
  62. sockopt=,nodelay,sndbuf=1048576,rcvbuf=1048576