Skip to content

Commit f219ad5

Browse files
committed
minor fixes
1 parent df46ad4 commit f219ad5

File tree

2 files changed

+32
-36
lines changed

2 files changed

+32
-36
lines changed

templates/galera_wizard.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def create_monitor_table():
385385

386386

387387
def create_users(thisuser):
388-
"""create users root, monitor and SST and delete anonymous"""
388+
"""create users root, monitor and sst and delete anonymous"""
389389
cnx_local = MySQLdb.connect(user='root',
390390
passwd=CREDENTIALS["root"],
391391
unix_socket='/var/lib/mysql/mysql.sock',

templates/wsrep.cnf.erb

+31-35
Original file line numberDiff line numberDiff line change
@@ -7,89 +7,85 @@
77

88
# this is read by the standalone daemon and embedded servers
99
[mysqld]
10-
## wsrep options
11-
wsrep_on=ON
10+
wsrep_on = ON
1211
<%
1312
gcomm_list = 'gcomm://'
1413
@galera_hosts.each do | key, values |
1514
gcomm_list = gcomm_list + values['ipv4'] + ","
1615
end
1716
gcomm_list = gcomm_list.chomp(",")
1817
-%>
19-
wsrep_cluster_address = "<%= gcomm_list -%>"
18+
wsrep_cluster_address = "<%= gcomm_list -%>"
2019

2120
# 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
2322

2423
#pxc_strict_mode allowed values: DISABLED,PERMISSIVE,ENFORCING,MASTER
25-
pxc_strict_mode = ENFORCING
24+
pxc_strict_mode = DISABLED
2625

2726
# node IP address
28-
wsrep_node_address = "<%= @ipaddress %>"
27+
wsrep_node_address = "<%= @ipaddress %>"
2928

3029
#If wsrep_node_name is not specified, then system hostname will be used
31-
wsrep_node_name = <%= @hostname %>
30+
wsrep_node_name = <%= @hostname %>
3231

3332
# 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"
3534

3635
# Logical cluster name. Should be the same for all nodes.
37-
wsrep_cluster_name = "<%= @galera_cluster_name %>"
36+
wsrep_cluster_name = "<%= @galera_cluster_name %>"
3837

3938
# Generate fake primary keys for non-PK tables (required for multi-master
4039
# and parallel applying operation)
41-
wsrep_certify_nonPK = 1
40+
wsrep_certify_nonPK = 1
4241

4342
# Maximum number of rows in write set
44-
wsrep_max_ws_rows = 131072
43+
wsrep_max_ws_rows = 131072
4544

4645
# Maximum size of write set
47-
wsrep_max_ws_size = 1073741824
46+
wsrep_max_ws_size = 1073741824
4847

4948
# to enable debug level logging, set this to 1
50-
wsrep_debug = 0
49+
wsrep_debug = 0
5150

5251
# convert locking sessions into transactions
53-
wsrep_convert_LOCK_to_trx = 0
52+
wsrep_convert_LOCK_to_trx = 0
5453

5554
# how many times to retry deadlocked autocommits
56-
wsrep_retry_autocommit = 5
55+
wsrep_retry_autocommit = 5
5756

5857
# change auto_increment_increment and auto_increment_offset automatically
59-
wsrep_auto_increment_control = 1
58+
wsrep_auto_increment_control = 1
6059

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
6362

6463
# retry autoinc insert, which failed for duplicate key error
6564
wsrep_drupal_282555_workaround = 0
6665

6766
# 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
7868

7969
# State Snapshot Transfer method
8070
# ClusterControl currently DOES NOT support wsrep_sst_method=mysqldump
81-
wsrep_sst_method = xtrabackup-v2
71+
wsrep_sst_method = xtrabackup-v2
8272

8373
# Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!!
8474
# (SST method dependent. Defaults to the first IP of the first interface)
85-
wsrep_sst_receive_address = <%= @ipaddress %>
75+
wsrep_sst_receive_address = <%= @ipaddress %>
8676

8777
# SST authentication string. This will be used to send SST to joining nodes.
8878
# 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 %>
9380

9481
# 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

Comments
 (0)