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.

129 lines
3.5 KiB

  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. ## mysqld options _MANDATORY_ for correct opration of the cluster
  11. ##
  12. [mysqld]
  13. # (This must be substituted by wsrep_format)
  14. binlog_format=ROW
  15. # Currently only InnoDB storage engine is supported
  16. default-storage-engine=innodb
  17. # to avoid issues with 'bulk mode inserts' using autoinc
  18. innodb_autoinc_lock_mode=2
  19. # This is a must for paralell applying
  20. innodb_locks_unsafe_for_binlog=1
  21. # Query Cache is not supported with wsrep
  22. query_cache_size=0
  23. query_cache_type=0
  24. # Override bind-address
  25. # In some systems bind-address defaults to 127.0.0.1, and with mysqldump SST
  26. # it will have (most likely) disastrous consequences on donor node
  27. bind-address=0.0.0.0
  28. ##
  29. ## WSREP options
  30. ##
  31. # Full path to wsrep provider library or 'none'
  32. wsrep_provider=none
  33. # Provider specific configuration options
  34. #wsrep_provider_options=
  35. # Logical cluster name. Should be the same for all nodes.
  36. wsrep_cluster_name="my_wsrep_cluster"
  37. # Group communication system handle
  38. #wsrep_cluster_address="dummy://"
  39. # Human-readable node name (non-unique). Hostname by default.
  40. #wsrep_node_name=
  41. # Base replication <address|hostname>[:port] of the node.
  42. # The values supplied will be used as defaults for state transfer receiving,
  43. # listening ports and so on. Default: address of the first network interface.
  44. #wsrep_node_address=
  45. # Address for incoming client connections. Autodetect by default.
  46. #wsrep_node_incoming_address=
  47. # How many threads will process writesets from other nodes
  48. wsrep_slave_threads=1
  49. # DBUG options for wsrep provider
  50. #wsrep_dbug_option
  51. # Generate fake primary keys for non-PK tables (required for multi-master
  52. # and parallel applying operation)
  53. wsrep_certify_nonPK=1
  54. # Maximum number of rows in write set
  55. wsrep_max_ws_rows=131072
  56. # Maximum size of write set
  57. wsrep_max_ws_size=1073741824
  58. # to enable debug level logging, set this to 1
  59. wsrep_debug=0
  60. # convert locking sessions into transactions
  61. wsrep_convert_LOCK_to_trx=0
  62. # how many times to retry deadlocked autocommits
  63. wsrep_retry_autocommit=1
  64. # change auto_increment_increment and auto_increment_offset automatically
  65. wsrep_auto_increment_control=1
  66. # retry autoinc insert, which failed for duplicate key error
  67. wsrep_drupal_282555_workaround=0
  68. # enable "strictly synchronous" semantics for read operations
  69. wsrep_causal_reads=0
  70. # Command to call when node status or cluster membership changes.
  71. # Will be passed all or some of the following options:
  72. # --status - new status of this node
  73. # --uuid - UUID of the cluster
  74. # --primary - whether the component is primary or not ("yes"/"no")
  75. # --members - comma-separated list of members
  76. # --index - index of this node in the list
  77. wsrep_notify_cmd=
  78. ##
  79. ## WSREP State Transfer options
  80. ##
  81. # State Snapshot Transfer method
  82. wsrep_sst_method=rsync
  83. # Address which donor should send State Snapshot to.
  84. # Should be the address of THIS node. DON'T SET IT TO DONOR ADDRESS!!!
  85. # (SST method dependent. Defaults to the first IP of the first interface)
  86. #wsrep_sst_receive_address=
  87. # SST authentication string. This will be used to send SST to joining nodes.
  88. # Depends on SST method. For mysqldump method it is root:<root password>
  89. wsrep_sst_auth=root:
  90. # Desired SST donor name.
  91. #wsrep_sst_donor=
  92. # Reject client queries when donating SST (false)
  93. #wsrep_sst_donor_rejects_queries=0
  94. # Protocol version to use
  95. # wsrep_protocol_version=