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.

my.cnf.init 1.8KB

9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
9 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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]
  13. datadir=/var/lib/mysql
  14. bind-address={{ service.bind.address }}
  15. port=3306
  16. max_connections={{ service.get('max_connections', 20000) }}
  17. default-storage-engine=innodb
  18. binlog_format=ROW
  19. collation-server=utf8_general_ci
  20. init-connect='SET NAMES utf8'
  21. character-set-server=utf8
  22. default-storage-engine=innodb
  23. skip-external-locking
  24. skip-name-resolve
  25. myisam_sort_buffer_size=64M
  26. wait_timeout=1800
  27. open_files_limit=102400
  28. table_open_cache=10000
  29. key_buffer_size=64M
  30. max_allowed_packet=256M
  31. query_cache_size=0
  32. query_cache_type=0
  33. innodb_file_format=Barracuda
  34. innodb_file_per_table=1
  35. innodb_buffer_pool_size=3138M
  36. innodb_log_file_size=627M
  37. innodb_read_io_threads=8
  38. innodb_write_io_threads=8
  39. innodb_io_capacity=500
  40. innodb_flush_log_at_trx_commit=2
  41. innodb_flush_method=O_DIRECT
  42. innodb_doublewrite=0
  43. innodb_autoinc_lock_mode=2
  44. innodb_locks_unsafe_for_binlog=1
  45. wsrep_cluster_address="gcomm://"
  46. wsrep_provider={{ service.wsrep_provider }}
  47. wsrep_cluster_name="openstack"
  48. wsrep_slave_threads=8
  49. wsrep_sst_method=xtrabackup-v2
  50. wsrep_sst_auth={{ service.admin.user }}:{{ service.admin.password }}
  51. wsrep_node_address={{ service.bind.address }}
  52. wsrep_provider_options="gcache.size = 256M"
  53. wsrep_provider_options="gmcast.listen_addr = tcp://{{ service.bind.address }}:4567"
  54. [xtrabackup]
  55. parallel=4
  56. [sst]
  57. streamfmt=xbstream
  58. transferfmt=socat
  59. sockopt=,nodelay,sndbuf=1048576,rcvbuf=1048576