|
7 | 7 |
|
8 | 8 | # this is read by the standalone daemon and embedded servers
|
9 | 9 | [mysqld]
|
10 |
| -## wsrep options |
11 |
| -wsrep_on=ON |
| 10 | +wsrep_on = ON |
12 | 11 | <%
|
13 | 12 | gcomm_list = 'gcomm://'
|
14 | 13 | @galera_hosts.each do | key, values |
|
15 | 14 | gcomm_list = gcomm_list + values['ipv4'] + ","
|
16 | 15 | end
|
17 | 16 | gcomm_list = gcomm_list.chomp(",")
|
18 | 17 | -%>
|
19 |
| -wsrep_cluster_address = "<%= gcomm_list -%>" |
| 18 | +wsrep_cluster_address = "<%= gcomm_list -%>" |
20 | 19 |
|
21 | 20 | # Full path to wsrep provider library or 'none'
|
22 |
| -wsrep_provider = /usr/lib64/galera3/libgalera_smm.so |
| 21 | +wsrep_provider = /usr/lib64/galera3/libgalera_smm.so |
23 | 22 |
|
24 | 23 | #pxc_strict_mode allowed values: DISABLED,PERMISSIVE,ENFORCING,MASTER
|
25 |
| -pxc_strict_mode = ENFORCING |
| 24 | +pxc_strict_mode = DISABLED |
26 | 25 |
|
27 | 26 | # node IP address
|
28 |
| -wsrep_node_address = "<%= @ipaddress %>" |
| 27 | +wsrep_node_address = "<%= @ipaddress %>" |
29 | 28 |
|
30 | 29 | #If wsrep_node_name is not specified, then system hostname will be used
|
31 |
| -wsrep_node_name = <%= @hostname %> |
| 30 | +wsrep_node_name = <%= @hostname %> |
32 | 31 |
|
33 | 32 | # Provider specific configuration options
|
34 |
| -wsrep_provider_options = "gcache.size=<%= (@memorysize_mb.to_f * 0.15).floor %>M" |
| 33 | +wsrep_provider_options = "gcache.size=<%= (@memorysize_mb.to_f * 0.15).floor %>M" |
35 | 34 |
|
36 | 35 | # Logical cluster name. Should be the same for all nodes.
|
37 |
| -wsrep_cluster_name = "<%= @galera_cluster_name %>" |
| 36 | +wsrep_cluster_name = "<%= @galera_cluster_name %>" |
38 | 37 |
|
39 | 38 | # Generate fake primary keys for non-PK tables (required for multi-master
|
40 | 39 | # and parallel applying operation)
|
41 |
| -wsrep_certify_nonPK = 1 |
| 40 | +wsrep_certify_nonPK = 1 |
42 | 41 |
|
43 | 42 | # Maximum number of rows in write set
|
44 |
| -wsrep_max_ws_rows = 131072 |
| 43 | +wsrep_max_ws_rows = 131072 |
45 | 44 |
|
46 | 45 | # Maximum size of write set
|
47 |
| -wsrep_max_ws_size = 1073741824 |
| 46 | +wsrep_max_ws_size = 1073741824 |
48 | 47 |
|
49 | 48 | # to enable debug level logging, set this to 1
|
50 |
| -wsrep_debug = 0 |
| 49 | +wsrep_debug = 0 |
51 | 50 |
|
52 | 51 | # convert locking sessions into transactions
|
53 |
| -wsrep_convert_LOCK_to_trx = 0 |
| 52 | +wsrep_convert_LOCK_to_trx = 0 |
54 | 53 |
|
55 | 54 | # how many times to retry deadlocked autocommits
|
56 |
| -wsrep_retry_autocommit = 5 |
| 55 | +wsrep_retry_autocommit = 5 |
57 | 56 |
|
58 | 57 | # change auto_increment_increment and auto_increment_offset automatically
|
59 |
| -wsrep_auto_increment_control = 1 |
| 58 | +wsrep_auto_increment_control = 1 |
60 | 59 |
|
61 |
| -# replicate myisam (it is NOT safe, we use it ONLY for the system tables) |
62 |
| -#wsrep_replicate_myisam = 1 # Not working with Percona |
| 60 | +# replicate myisam (NOT safe, we use it ONLY for the system tables) |
| 61 | +wsrep_replicate_myisam = 1 # requires pxc_strict_mode = DISABLED |
63 | 62 |
|
64 | 63 | # retry autoinc insert, which failed for duplicate key error
|
65 | 64 | wsrep_drupal_282555_workaround = 0
|
66 | 65 |
|
67 | 66 | # enable "strictly synchronous" semantics for read operations
|
68 |
| -wsrep_causal_reads = 0 |
69 |
| - |
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= |
| 67 | +wsrep_causal_reads = 0 |
78 | 68 |
|
79 | 69 | # State Snapshot Transfer method
|
80 | 70 | # ClusterControl currently DOES NOT support wsrep_sst_method=mysqldump
|
81 |
| -wsrep_sst_method = xtrabackup-v2 |
| 71 | +wsrep_sst_method = xtrabackup-v2 |
82 | 72 |
|
83 | 73 | # Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!!
|
84 | 74 | # (SST method dependent. Defaults to the first IP of the first interface)
|
85 |
| -wsrep_sst_receive_address = <%= @ipaddress %> |
| 75 | +wsrep_sst_receive_address = <%= @ipaddress %> |
86 | 76 |
|
87 | 77 | # SST authentication string. This will be used to send SST to joining nodes.
|
88 | 78 | # Depends on SST method. For mysqldump method it is root:<root password>
|
89 |
| -wsrep_sst_auth = sstuser:<%= @sst_password %> |
90 |
| - |
91 |
| -# Desired SST donor name. |
92 |
| -#wsrep_sst_donor = |
| 79 | +wsrep_sst_auth = sstuser:<%= @sst_password %> |
93 | 80 |
|
94 | 81 | # Protocol version to use
|
95 |
| -#wsrep_protocol_version = |
| 82 | +#wsrep_protocol_version = |
| 83 | + |
| 84 | +# Command to call when node status or cluster membership changes. |
| 85 | +# Will be passed all or some of the following options: |
| 86 | +# --status - new status of this node |
| 87 | +# --uuid - UUID of the cluster |
| 88 | +# --primary - whether the component is primary or not ("yes"/"no") |
| 89 | +# --members - comma-separated list of members |
| 90 | +# --index - index of this node in the list |
| 91 | +#wsrep_notify_cmd = |
0 commit comments