Advertisement
Guest User

Untitled

a guest
Feb 27th, 2014
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. # This file contains wsrep-related mysqld options. It should be included
  2. # in the main MySQL configuration file.
  3. #
  4. # Options that need to be customized:
  5. # - wsrep_provider
  6. # - wsrep_cluster_address
  7. # - wsrep_sst_auth
  8. # The rest of defaults should work out of the box.
  9.  
  10. ##
  11. ## mysqld options _MANDATORY_ for correct opration of the cluster
  12. ##
  13. [mysqld]
  14.  
  15. # (This must be substituted by wsrep_format)
  16. binlog_format=ROW
  17.  
  18. # Currently only InnoDB storage engine is supported
  19. default-storage-engine=innodb
  20.  
  21. # to avoid issues with 'bulk mode inserts' using autoinc
  22. innodb_autoinc_lock_mode=2
  23.  
  24. # This is a must for paralell applying
  25. innodb_locks_unsafe_for_binlog=1
  26.  
  27. # Query Cache is not supported with wsrep
  28. query_cache_size=0
  29. query_cache_type=0
  30.  
  31. # Override bind-address
  32. # In some systems bind-address defaults to 127.0.0.1, and with mysqldump SST
  33. # it will have (most likely) disastrous consequences on donor node
  34. bind-address=192.168.0.3
  35. port=3307
  36.  
  37. max_connections=2048
  38.  
  39. ##
  40. ## WSREP options
  41. ##
  42. # Full path to wsrep provider library or 'none'
  43. wsrep_provider=/usr/lib64/galera/libgalera_smm.so
  44.  
  45. # Provider specific configuration options
  46. # See http://www.codership.com/wiki/doku.php?id=faq
  47.  
  48. wsrep_provider_options="pc.ignore_sb = no;ist.recv_addr=192.168.0.3;gmcast.listen_addr=tcp://192.168.0.3:4567"
  49.  
  50. # Logical cluster name. Should be the same for all nodes.
  51. wsrep_cluster_name="openstack"
  52.  
  53. wsrep_cluster_address="gcomm://192.168.0.4:4567,192.168.0.5:4567?pc.wait_prim=no"
  54.  
  55. # Human-readable node name (non-unique). Hostname by default.
  56. #wsrep_node_name=
  57.  
  58. # Base replication <address|hostname>[:port] of the node.
  59. # The values supplied will be used as defaults for state transfer receiving,
  60. # listening ports and so on. Default: address of the first network interface.
  61. wsrep_node_address=192.168.0.3
  62.  
  63. # Address for incoming client connections. Autodetect by default.
  64. #wsrep_node_incoming_address=
  65.  
  66. # How many threads will process writesets from other nodes
  67. wsrep_slave_threads=32
  68.  
  69.  
  70. # DBUG options for wsrep provider
  71. #wsrep_dbug_option
  72.  
  73. # Generate fake primary keys for non-PK tables (required for multi-master
  74. # and parallel applying operation)
  75. wsrep_certify_nonPK=1
  76.  
  77. # Maximum number of rows in write set
  78. wsrep_max_ws_rows=131072
  79.  
  80. # Maximum size of write set
  81. wsrep_max_ws_size=1073741824
  82.  
  83. # to enable debug level logging, set this to 1
  84. wsrep_debug=0
  85.  
  86. # convert locking sessions into transactions
  87. wsrep_convert_LOCK_to_trx=0
  88.  
  89. # how many times to retry deadlocked autocommits
  90. wsrep_retry_autocommit=1
  91.  
  92. # change auto_increment_increment and auto_increment_offset automatically
  93. wsrep_auto_increment_control=1
  94.  
  95. # retry autoinc insert, which failed for duplicate key error
  96. wsrep_drupal_282555_workaround=0
  97.  
  98. # enable "strictly synchronous" semantics for read operations
  99. wsrep_causal_reads=0
  100.  
  101. # Command to call when node status or cluster membership changes.
  102. # Will be passed all or some of the following options:
  103. # --status - new status of this node
  104. # --uuid - UUID of the cluster
  105. # --primary - whether the component is primary or not ("yes"/"no")
  106. # --members - comma-separated list of members
  107. # --index - index of this node in the list
  108. wsrep_notify_cmd=
  109.  
  110. ##
  111. ## WSREP State Transfer options
  112. ##
  113.  
  114. # State Snapshot Transfer method
  115. wsrep_sst_method=mysqldump
  116.  
  117. # Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!!
  118. # (SST method dependent. Defaults to the first IP of the first interface)
  119. wsrep_sst_receive_address=192.168.0.3:3307
  120.  
  121. # SST authentication string. This will be used to send SST to joining nodes.
  122. # Depends on SST method. For mysqldump method it is root:<root password>
  123. wsrep_sst_auth=wsrep_sst:password
  124.  
  125. # Desired SST donor name.
  126. #wsrep_sst_donor=
  127.  
  128. # Protocol version to use
  129. # wsrep_protocol_version=
  130. skip-name-resolve
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement