Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  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.  
  5. [MYSQLD]
  6. lower_case_table_names=1
  7. connect_timeout=10000
  8. delayed_insert_timeout=1000
  9. net_read_timeout=100000
  10. net_write_timeout=100000
  11. thread_pool_idle_timeout=10000
  12. slave_net_timeout=10000
  13. innodb_lock_wait_timeout=300
  14. interactive_timeout=180
  15. wait_timeout=180
  16. user=mysql
  17. basedir=/usr/
  18. datadir=/data/mysql
  19. socket=/var/run/mysqld/mysqld.sock
  20. pid_file=mysqld.pid
  21. port=3306
  22. log_error=/var/log/mysql.log
  23. log_warnings=2
  24. #log_output=FILE
  25. ### INNODB OPTIONS
  26. innodb_buffer_pool_size=3313M
  27. innodb_flush_log_at_trx_commit=2
  28. innodb_file_per_table=1
  29. innodb_data_file_path = ibdata1:100M:autoextend
  30. ## You may want to tune the below depending on number of cores and disk sub
  31. innodb_read_io_threads=4
  32. innodb_write_io_threads=4
  33. innodb_io_capacity=200
  34. innodb_doublewrite=1
  35. innodb_log_file_size=512M
  36. innodb_log_buffer_size=64M
  37. innodb_buffer_pool_instances=4
  38. innodb_log_files_in_group=2
  39. innodb_thread_concurrency=64
  40. #innodb_file_format=barracuda
  41. innodb_flush_method = O_DIRECT
  42. innodb_autoinc_lock_mode=2
  43. ## avoid statistics update when doing e.g show tables
  44. innodb_stats_on_metadata=0
  45. default_storage_engine=innodb
  46.  
  47. # CHARACTER SET
  48. #collation_server = utf8_unicode_ci
  49. #init_connect='SET NAMES utf8'
  50. #character_set_server = utf8
  51.  
  52. # REPLICATION SPECIFIC
  53. #server_id must be unique across all mysql servers participating in replication.
  54. #server_id=SERVERID
  55. binlog_format=ROW
  56. #log_slave_updates=1
  57. #log_bin=binlog
  58. #relay_log=relay-bin
  59. #expire_logs_days=7
  60. #gtid_mode=ON
  61. #enforce_gtid_consistency=1
  62. # OTHER THINGS, BUFFERS ETC
  63. key_buffer_size = 24M
  64. tmp_table_size = 64M
  65. max_heap_table_size = 64M
  66. max_allowed_packet = 512M
  67. #sort_buffer_size = 256K
  68. #read_buffer_size = 256K
  69. #read_rnd_buffer_size = 512K
  70. #myisam_sort_buffer_size = 8M
  71. skip_name_resolve
  72. memlock=0
  73. sysdate_is_now=1
  74. max_connections=2000
  75. thread_cache_size=512
  76. query_cache_type = 0
  77. query_cache_size = 0
  78. table_open_cache=1024
  79. lower_case_table_names=0
  80. # 5.6 backwards compatibility
  81. explicit_defaults_for_timestamp=1
  82. performance_schema=1
  83. performance-schema-max-mutex-classes=0
  84. performance-schema-max-mutex-instances=0
  85. ##
  86. ## WSREP options
  87. ##
  88.  
  89. # Full path to wsrep provider library or 'none'
  90. wsrep_provider=/usr/lib/galera/libgalera_smm.so
  91.  
  92. # Provider specific configuration options
  93. wsrep_provider_options="gcache.size=4096M; gmcast.segment=0;evs.keepalive_period = PT3S;evs.suspect_timeout = PT30S;evs.inactive_timeout = PT1M;evs.install_timeout = PT1M;evs.join_retrans_period=PT0.5S"
  94.  
  95. # Logical cluster name. Should be the same for all nodes.
  96. wsrep_cluster_name="my_wsrep_cluster"
  97.  
  98. # Group communication system handle
  99. wsrep_cluster_address=gcomm://10.0.0.4,10.0.0.5,10.1.0.4,10.1.0.5,10.1.0.6
  100.  
  101. # Human_readable node name (non-unique). Hostname by default.
  102. wsrep_node_name=10.1.0.4
  103.  
  104. # Address for incoming client connections. Autodetect by default.
  105. wsrep_node_incoming_address=10.1.0.4
  106.  
  107. wsrep_node_address=10.1.0.4
  108.  
  109. # How many threads will process writesets from other nodes
  110. wsrep_slave_threads=8
  111.  
  112. # DBUG options for wsrep provider
  113. #wsrep_dbug_option
  114.  
  115. # Generate fake primary keys for non-PK tables (required for multi-master
  116. # and parallel applying operation)
  117. wsrep_certify_nonPK=1
  118.  
  119. # Location of the directory with data files. Needed for non-mysqldump
  120. # state snapshot transfers. Defaults to mysql_real_data_home.
  121. #wsrep_data_home_dir=
  122.  
  123. # Maximum number of rows in write set
  124. wsrep_max_ws_rows=131072
  125.  
  126. # Maximum size of write set
  127. wsrep_max_ws_size=1073741824
  128.  
  129. # to enable debug level logging, set this to 1
  130. wsrep_debug=0
  131.  
  132. # convert locking sessions into transactions
  133. wsrep_convert_LOCK_to_trx=0
  134.  
  135. # how many times to retry deadlocked autocommits
  136. wsrep_retry_autocommit=1
  137.  
  138. # change auto_increment_increment and auto_increment_offset automatically
  139. wsrep_auto_increment_control=1
  140.  
  141. # replicate myisam
  142. wsrep_replicate_myisam=1
  143. # retry autoinc insert, which failed for duplicate key error
  144. wsrep_drupal_282555_workaround=0
  145.  
  146. # enable "strictly synchronous" semantics for read operations
  147. wsrep_causal_reads=0
  148.  
  149. # Command to call when node status or cluster membership changes.
  150. # Will be passed all or some of the following options:
  151. # --status - new status of this node
  152. # --uuid - UUID of the cluster
  153. # --primary - whether the component is primary or not ("yes"/"no")
  154. # --members - comma-separated list of members
  155. # --index - index of this node in the list
  156. #wsrep_notify_cmd=
  157.  
  158. ##
  159. ## WSREP State Transfer options
  160. ##
  161.  
  162. # State Snapshot Transfer method
  163. # ClusterControl currently DOES NOT support wsrep_sst_method=mysqldump
  164. wsrep_sst_method=xtrabackup-v2
  165. #wsrep_sst_method=rsync
  166.  
  167. # Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!!
  168. # (SST method dependent. Defaults to the first IP of the first interface)
  169. #wsrep_sst_receive_address=
  170.  
  171. # SST authentication string. This will be used to send SST to joining nodes.
  172. # Depends on SST method. For mysqldump method it is root:<root password>
  173. wsrep_sst_auth=root:q3cMe53LoLeoKO7
  174.  
  175. # Desired SST donor name.
  176. wsrep_sst_donor=10.1.0.5
  177.  
  178. # Protocol version to use
  179. # wsrep_protocol_version=
  180. [MYSQL]
  181. socket=/var/run/mysqld/mysqld.sock
  182. #default_character_set=utf8
  183. [client]
  184. socket=/var/run/mysqld/mysqld.sock
  185. #default_character_set=utf8
  186. [mysqldump]
  187. max_allowed_packet = 512M
  188. socket=/var/run/mysqld/mysqld.sock
  189. #default_character_set=utf8
  190. [MYSQLD_SAFE]
  191. pid_file=mysqld.pid
  192. log_error=/var/log/mysql.log
  193. basedir=/usr/
  194. datadir=/data/mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement