Merge lp:~hrvojem/percona-xtradb-cluster/bug1264394-5.5 into lp:percona-xtradb-cluster/5.5
- bug1264394-5.5
- Merge into trunk-25
Proposed by
Hrvoje Matijakovic
Status: | Merged |
---|---|
Approved by: | Raghavendra D Prabhu |
Approved revision: | no longer in the source branch. |
Merged at revision: | 631 |
Proposed branch: | lp:~hrvojem/percona-xtradb-cluster/bug1264394-5.5 |
Merge into: | lp:percona-xtradb-cluster/5.5 |
Diff against target: |
404 lines (+60/-124) 7 files modified
doc-pxc/source/howtos/3nodesec2.rst (+53/-53) doc-pxc/source/howtos/cenots_howto.rst (+0/-9) doc-pxc/source/howtos/kewpietests.rst (+0/-35) doc-pxc/source/howtos/singlebox.rst (+7/-15) doc-pxc/source/howtos/ubuntu_howto.rst (+0/-9) doc-pxc/source/howtos/virt_sandbox.rst (+0/-1) doc-pxc/source/installation.rst (+0/-2) |
To merge this branch: | bzr merge lp:~hrvojem/percona-xtradb-cluster/bug1264394-5.5 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raghavendra D Prabhu (community) | Needs Fixing | ||
Review via email: mp+201778@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote : | # |
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote : | # |
Needs fixing as per previous comment.
review:
Needs Fixing
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'doc-pxc/source/howtos/3nodesec2.rst' | |||
2 | --- doc-pxc/source/howtos/3nodesec2.rst 2013-12-30 17:01:54 +0000 | |||
3 | +++ doc-pxc/source/howtos/3nodesec2.rst 2014-02-06 09:58:46 +0000 | |||
4 | @@ -35,8 +35,6 @@ | |||
5 | 35 | 35 | ||
6 | 36 | On the first node (assume IP 10.93.46.58): :: | 36 | On the first node (assume IP 10.93.46.58): :: |
7 | 37 | 37 | ||
8 | 38 | [mysqld_safe] | ||
9 | 39 | wsrep_urls=gcomm://10.93.46.58:4567,gcomm://10.93.46.59:4567,gcomm://10.93.46.60:4567,gcomm:// | ||
10 | 40 | 38 | ||
11 | 41 | [mysqld] | 39 | [mysqld] |
12 | 42 | datadir=/mnt/data | 40 | datadir=/mnt/data |
13 | @@ -45,24 +43,22 @@ | |||
14 | 45 | binlog_format=ROW | 43 | binlog_format=ROW |
15 | 46 | 44 | ||
16 | 47 | wsrep_provider=/usr/lib64/libgalera_smm.so | 45 | wsrep_provider=/usr/lib64/libgalera_smm.so |
17 | 46 | wsrep_cluster_address=gcomm://10.93.46.58,10.93.46.59,10.93.46.60 | ||
18 | 48 | 47 | ||
19 | 49 | wsrep_slave_threads=2 | 48 | wsrep_slave_threads=2 |
20 | 50 | wsrep_cluster_name=trimethylxanthine | 49 | wsrep_cluster_name=trimethylxanthine |
21 | 51 | wsrep_sst_method=rsync | 50 | wsrep_sst_method=rsync |
22 | 52 | wsrep_node_name=node1 | 51 | wsrep_node_name=node1 |
23 | 53 | 52 | ||
24 | 54 | innodb_locks_unsafe_for_binlog=1 | ||
25 | 55 | innodb_autoinc_lock_mode=2 | 53 | innodb_autoinc_lock_mode=2 |
26 | 56 | 54 | ||
27 | 57 | On the second node (assume IP 10.93.46.59): :: | 55 | On the second node (assume IP 10.93.46.59): :: |
28 | 58 | 56 | ||
29 | 59 | [mysqld_safe] | ||
30 | 60 | wsrep_urls=gcomm://10.93.46.58:4567,gcomm://10.93.46.59:4567,gcomm://10.93.46.60:4567,gcomm:// | ||
31 | 61 | |||
32 | 62 | [mysqld] | 57 | [mysqld] |
33 | 63 | datadir=/mnt/data | 58 | datadir=/mnt/data |
34 | 64 | user=mysql | 59 | user=mysql |
35 | 65 | 60 | ||
36 | 61 | wsrep_cluster_address=gcomm://10.93.46.58,10.93.46.59,10.93.46.60 | ||
37 | 66 | binlog_format=ROW | 62 | binlog_format=ROW |
38 | 67 | 63 | ||
39 | 68 | wsrep_provider=/usr/lib64/libgalera_smm.so | 64 | wsrep_provider=/usr/lib64/libgalera_smm.so |
40 | @@ -72,70 +68,74 @@ | |||
41 | 72 | wsrep_sst_method=rsync | 68 | wsrep_sst_method=rsync |
42 | 73 | wsrep_node_name=node2 | 69 | wsrep_node_name=node2 |
43 | 74 | 70 | ||
44 | 75 | innodb_locks_unsafe_for_binlog=1 | ||
45 | 76 | innodb_autoinc_lock_mode=2 | 71 | innodb_autoinc_lock_mode=2 |
46 | 77 | 72 | ||
48 | 78 | On the third (and following nodes) config is similar, with the following change: :: | 73 | On the third (and following nodes) configuration is similar, with the following change: :: |
49 | 79 | 74 | ||
50 | 80 | wsrep_node_name=node3 | 75 | wsrep_node_name=node3 |
51 | 81 | 76 | ||
55 | 82 | In this example variable :variable:`wsrep_urls` is being used instead of :variable:`wsrep_cluster_address`. With this configuration, node will first try to reach a cluster on `10.93.46.58:4567` if there is no cluster node, then it will try on `10.93.46.59:4567` and then `10.93.46.60:4567`. If no nodes are up, it will start a new cluster. Variable :variable:`wsrep_urls` goes into the [mysql_safe] section so it's important that the mysql server instance is started with the `/bin/mysql_safe` and not `bin/mysqld`. | 77 | 6. Start the |Percona XtraDB Cluster| |
53 | 83 | |||
54 | 84 | 6. Start mysqld_safe | ||
56 | 85 | 78 | ||
57 | 86 | On the first node: :: | 79 | On the first node: :: |
58 | 87 | 80 | ||
60 | 88 | mysqld_safe | 81 | [root@node1 ~]# /etc/init.d/mysql bootstrap-pxc |
61 | 89 | 82 | ||
62 | 90 | You should be able to see in console (or in error-log file): :: | 83 | You should be able to see in console (or in error-log file): :: |
63 | 91 | 84 | ||
68 | 92 | 111216 0:16:42 [Note] /usr/sbin/mysqld: ready for connections. | 85 | 140113 12:23:43 [Note] /usr/sbin/mysqld: ready for connections. |
69 | 93 | Version: '5.5.17' socket: '/var/lib/mysql/mysql.sock' port: 3306 Percona XtraDB Cluster (GPL), Release alpha22.1, Revision 3673 wsrep_22.3.r3673 | 86 | Version: '5.5.34-55' socket: '/var/lib/mysql/mysql.sock' port: 3306 Percona XtraDB Cluster (GPL), wsrep_25.9.r3928 |
66 | 94 | 111216 0:16:42 [Note] WSREP: Assign initial position for certification: 0, protocol version: 1 | ||
67 | 95 | 111216 0:16:42 [Note] WSREP: Synchronized with group, ready for connections | ||
70 | 96 | 87 | ||
71 | 97 | On the second (and following nodes): :: | 88 | On the second (and following nodes): :: |
72 | 98 | 89 | ||
74 | 99 | mysqld_safe | 90 | [root@node2 ~]# /etc/init.d/mysql start |
75 | 100 | 91 | ||
76 | 101 | You should be able to see in console (or in error-log file): :: | 92 | You should be able to see in console (or in error-log file): :: |
77 | 102 | 93 | ||
114 | 103 | 111216 0:21:39 [Note] WSREP: Flow-control interval: [12, 23] | 94 | 140113 17:29:34 [Note] WSREP: New cluster view: global state: fb031d6e-7c4c-11e3-bf3a-ae73fcffc079:0, view# 8: Primary, number of nodes: 2, my index: 1, protocol version 2 |
115 | 104 | 111216 0:21:39 [Note] WSREP: Shifting OPEN -> PRIMARY (TO: 0) | 95 | 140113 17:29:34 [Warning] WSREP: Gap in state sequence. Need state transfer. |
116 | 105 | 111216 0:21:39 [Note] WSREP: New cluster view: global state: f912d2eb-27a2-11e1-0800-f34c520a3d4b:0, view# 2: Primary, number of nodes: 2, my index: 1, protocol version 1 | 96 | 140113 17:29:36 [Note] WSREP: Running: 'wsrep_sst_rsync --role 'joiner' --address '10.93.46.59' --auth '' --datadir '/mnt/data/' --defaults-file '/etc/my.cnf' --parent '29627'' |
117 | 106 | 111216 0:21:39 [Warning] WSREP: Gap in state sequence. Need state transfer. | 97 | cat: /var/lib/mysql//rsync_sst.pid: No such file or directory |
118 | 107 | 111216 0:21:41 [Note] WSREP: Running: 'wsrep_sst_rsync 'joiner' '10.93.46.60' '' '/mnt/data/' '/etc/my.cnf' '1694' 2>sst.err' | 98 | 140113 17:29:36 [Note] WSREP: Prepared SST request: rsync|10.93.46.59:4444/rsync_sst |
119 | 108 | 111216 0:21:41 [Note] WSREP: Prepared SST request: rsync|10.93.46.60:4444/rsync_sst | 99 | 140113 17:29:36 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification. |
120 | 109 | 111216 0:21:41 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification. | 100 | 140113 17:29:36 [Note] WSREP: Assign initial position for certification: 0, protocol version: 2 |
121 | 110 | 111216 0:21:41 [Note] WSREP: Assign initial position for certification: 0, protocol version: 1 | 101 | 140113 17:29:36 [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-0000-0000-0000-000000000000) does not match group state UUID (fb031d6e-7c4c-11e3-bf3a-ae73fcffc079): 1 (Operation not permitted) |
122 | 111 | 111216 0:21:41 [Note] WSREP: prepared IST receiver, listening in: tcp://10.93.46.60:4568 | 102 | at galera/src/replicator_str.cpp:prepare_for_IST():445. IST will be unavailable. |
123 | 112 | 111216 0:21:41 [Note] WSREP: Node 1 (node2) requested state transfer from '*any*'. Selected 0 (node1)(SYNCED) as donor. | 103 | 140113 17:29:36 [Note] WSREP: Node 1 (node1) requested state transfer from '*any*'. Selected 0 (node1)(SYNCED) as donor. |
124 | 113 | 111216 0:21:41 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 0) | 104 | 140113 17:29:36 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 0) |
125 | 114 | 111216 0:21:41 [Note] WSREP: Requesting state transfer: success, donor: 0 | 105 | 140113 17:29:36 [Note] WSREP: Requesting state transfer: success, donor: 0 |
126 | 115 | 111216 0:21:42 [Note] WSREP: 0 (node1): State transfer to 1 (node2) complete. | 106 | 140113 17:29:39 [Note] WSREP: 0 (node1): State transfer to 1 (node1) complete. |
127 | 116 | 111216 0:21:42 [Note] WSREP: Member 0 (node1) synced with group. | 107 | 140113 17:29:39 [Note] WSREP: Member 0 (node1) synced with group. |
128 | 117 | 111216 0:21:42 [Note] WSREP: SST complete, seqno: 0 | 108 | WSREP_SST: [INFO] Joiner cleanup. (20140113 17:29:39.792) |
129 | 118 | 111216 0:21:42 [Note] Plugin 'FEDERATED' is disabled. | 109 | WSREP_SST: [INFO] Joiner cleanup done. (20140113 17:29:40.302) |
130 | 119 | 111216 0:21:42 InnoDB: The InnoDB memory heap is disabled | 110 | 140113 17:29:40 [Note] WSREP: SST complete, seqno: 0 |
131 | 120 | 111216 0:21:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins | 111 | 140113 17:29:40 [Note] Plugin 'FEDERATED' is disabled. |
132 | 121 | 111216 0:21:42 InnoDB: Compressed tables use zlib 1.2.3 | 112 | 140113 17:29:40 InnoDB: The InnoDB memory heap is disabled |
133 | 122 | 111216 0:21:42 InnoDB: Using Linux native AIO | 113 | 140113 17:29:40 InnoDB: Mutexes and rw_locks use GCC atomic builtins |
134 | 123 | 111216 0:21:42 InnoDB: Initializing buffer pool, size = 128.0M | 114 | 140113 17:29:40 InnoDB: Compressed tables use zlib 1.2.3 |
135 | 124 | 111216 0:21:42 InnoDB: Completed initialization of buffer pool | 115 | 140113 17:29:40 InnoDB: Using Linux native AIO |
136 | 125 | 111216 0:21:42 InnoDB: highest supported file format is Barracuda. | 116 | 140113 17:29:40 InnoDB: Initializing buffer pool, size = 128.0M |
137 | 126 | 111216 0:21:42 InnoDB: Waiting for the background threads to start | 117 | 140113 17:29:40 InnoDB: Completed initialization of buffer pool |
138 | 127 | 111216 0:21:43 Percona XtraDB (http://www.percona.com) 1.1.8-20.1 started; log sequence number 1597945 | 118 | 140113 17:29:40 InnoDB: highest supported file format is Barracuda. |
139 | 128 | 111216 0:21:43 [Note] Event Scheduler: Loaded 0 events | 119 | InnoDB: Log scan progressed past the checkpoint lsn 1598437 |
140 | 129 | 111216 0:21:43 [Note] WSREP: Signalling provider to continue. | 120 | 140113 17:29:40 InnoDB: Database was not shut down normally! |
141 | 130 | 111216 0:21:43 [Note] WSREP: Received SST: f912d2eb-27a2-11e1-0800-f34c520a3d4b:0 | 121 | InnoDB: Starting crash recovery. |
142 | 131 | 111216 0:21:43 [Note] WSREP: SST finished: f912d2eb-27a2-11e1-0800-f34c520a3d4b:0 | 122 | InnoDB: Reading tablespace information from the .ibd files... |
143 | 132 | 111216 0:21:43 [Note] /usr/sbin/mysqld: ready for connections. | 123 | InnoDB: Restoring possible half-written data pages from the doublewrite |
144 | 133 | Version: '5.5.17' socket: '/var/lib/mysql/mysql.sock' port: 3306 Percona XtraDB Cluster (GPL), Release alpha22.1, Revision 3673 wsrep_22.3.r3673 | 124 | InnoDB: buffer... |
145 | 134 | 111216 0:21:43 [Note] WSREP: 1 (node2): State transfer from 0 (node1) complete. | 125 | InnoDB: Doing recovery: scanned up to log sequence number 1598607 |
146 | 135 | 111216 0:21:43 [Note] WSREP: Shifting JOINER -> JOINED (TO: 0) | 126 | 140113 17:29:40 InnoDB: Waiting for the background threads to start |
147 | 136 | 111216 0:21:43 [Note] WSREP: Member 1 (node2) synced with group. | 127 | 140113 17:29:41 Percona XtraDB (http://www.percona.com) 5.5.34-rel32.0 started; log sequence number 1598607 |
148 | 137 | 111216 0:21:43 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0) | 128 | 140113 17:29:41 [Note] Event Scheduler: Loaded 0 events |
149 | 138 | 111216 0:21:43 [Note] WSREP: Synchronized with group, ready for connections | 129 | 140113 17:29:41 [Note] WSREP: Signalling provider to continue. |
150 | 130 | 140113 17:29:41 [Note] WSREP: SST received: fb031d6e-7c4c-11e3-bf3a-ae73fcffc079:0 | ||
151 | 131 | 140113 17:29:41 [Note] /usr/sbin/mysqld: ready for connections. | ||
152 | 132 | Version: '5.5.34-55' socket: '/var/lib/mysql/mysql.sock' port: 3306 Percona XtraDB Cluster (GPL), wsrep_25.9.r3928 | ||
153 | 133 | 140113 17:29:41 [Note] WSREP: 1 (node1): State transfer from 0 (node1) complete. | ||
154 | 134 | 140113 17:29:41 [Note] WSREP: Shifting JOINER -> JOINED (TO: 0) | ||
155 | 135 | 140113 17:29:41 [Note] WSREP: Member 1 (node1) synced with group. | ||
156 | 136 | 140113 17:29:41 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0) | ||
157 | 137 | 140113 17:29:41 [Note] WSREP: Synchronized with group, ready for connections | ||
158 | 138 | 140113 17:29:41 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification. | ||
159 | 139 | 139 | ||
160 | 140 | When all nodes are in SYNCED stage your cluster is ready! | 140 | When all nodes are in SYNCED stage your cluster is ready! |
161 | 141 | 141 | ||
162 | 142 | 142 | ||
163 | === modified file 'doc-pxc/source/howtos/cenots_howto.rst' | |||
164 | --- doc-pxc/source/howtos/cenots_howto.rst 2013-12-30 17:01:54 +0000 | |||
165 | +++ doc-pxc/source/howtos/cenots_howto.rst 2014-02-06 09:58:46 +0000 | |||
166 | @@ -65,9 +65,6 @@ | |||
167 | 65 | # MyISAM storage engine has only experimental support | 65 | # MyISAM storage engine has only experimental support |
168 | 66 | default_storage_engine=InnoDB | 66 | default_storage_engine=InnoDB |
169 | 67 | 67 | ||
170 | 68 | # This is a recommended tuning variable for performance | ||
171 | 69 | innodb_locks_unsafe_for_binlog=1 | ||
172 | 70 | |||
173 | 71 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera | 68 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera |
174 | 72 | innodb_autoinc_lock_mode=2 | 69 | innodb_autoinc_lock_mode=2 |
175 | 73 | 70 | ||
176 | @@ -152,9 +149,6 @@ | |||
177 | 152 | # MyISAM storage engine has only experimental support | 149 | # MyISAM storage engine has only experimental support |
178 | 153 | default_storage_engine=InnoDB | 150 | default_storage_engine=InnoDB |
179 | 154 | 151 | ||
180 | 155 | # This is a recommended tuning variable for performance | ||
181 | 156 | innodb_locks_unsafe_for_binlog=1 | ||
182 | 157 | |||
183 | 158 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera | 152 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera |
184 | 159 | innodb_autoinc_lock_mode=2 | 153 | innodb_autoinc_lock_mode=2 |
185 | 160 | 154 | ||
186 | @@ -216,9 +210,6 @@ | |||
187 | 216 | # MyISAM storage engine has only experimental support | 210 | # MyISAM storage engine has only experimental support |
188 | 217 | default_storage_engine=InnoDB | 211 | default_storage_engine=InnoDB |
189 | 218 | 212 | ||
190 | 219 | # This is a recommended tuning variable for performance | ||
191 | 220 | innodb_locks_unsafe_for_binlog=1 | ||
192 | 221 | |||
193 | 222 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera | 213 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera |
194 | 223 | innodb_autoinc_lock_mode=2 | 214 | innodb_autoinc_lock_mode=2 |
195 | 224 | 215 | ||
196 | 225 | 216 | ||
197 | === removed file 'doc-pxc/source/howtos/kewpietests.rst' | |||
198 | --- doc-pxc/source/howtos/kewpietests.rst 2012-06-27 10:05:05 +0000 | |||
199 | +++ doc-pxc/source/howtos/kewpietests.rst 1970-01-01 00:00:00 +0000 | |||
200 | @@ -1,35 +0,0 @@ | |||
201 | 1 | =========================== | ||
202 | 2 | How to Execute Kewpie Tests | ||
203 | 3 | =========================== | ||
204 | 4 | |||
205 | 5 | To use kewpie for testing it's recommended to use `this MP <https://code.launchpad.net/~patrick-crews/percona-xtradb-cluster/qp-integrate/+merge/93648>`_. As it removes dbqp and integrates kewpie (and cuts size down to 25MB from 400+). | ||
206 | 6 | To execute tests: | ||
207 | 7 | |||
208 | 8 | .. code-block:: bash | ||
209 | 9 | |||
210 | 10 | cd kewpie ; ./kewpie.py [--force ] [--libeatmydata] [--wsrep-provider-path=...] | ||
211 | 11 | |||
212 | 12 | The defaults are to run the cluster_basic and cluster_randgen suites against a 3 node cluster. Cluster_basic is used for small atomic tests like ADD/DROP single/multiple columns on a table and ensuring the change is replicated. cluster_randgen is used for high stress transactional loads. There are single and multi-threaded variants. The load is a mix of INSERT/UPDATE/DELETE/SELECT statements. This includes both regular transactions, single queries, ROLLBACK's and SAVEPOINTs, and a mix of good and bad SQL statements. | ||
213 | 13 | |||
214 | 14 | To view all options, one may look at "./kewpie.py --help". Basic documentation is also available as sphinx docs in kewpie/docs folder. Here are the some of the most used options: | ||
215 | 15 | |||
216 | 16 | .. option:: --force | ||
217 | 17 | |||
218 | 18 | Run all tests despite failures (default is to stop test execution on first failure) | ||
219 | 19 | |||
220 | 20 | .. option:: --libeatmydata | ||
221 | 21 | |||
222 | 22 | Use libeatmydata if installed. This can greatly speed up testing in many cases. Can be used in conjunction with: | ||
223 | 23 | |||
224 | 24 | .. option:: --libeatmydata-path to specify where the library is located. | ||
225 | 25 | |||
226 | 26 | .. option:: --wsrep-provider-path | ||
227 | 27 | |||
228 | 28 | By default, we expect / look for it in /usr/lib/galera/libgalera_smm.so (where it ends up via 'make install'...at least on Ubuntu). If one has an alternate library/location, specify it with this option. | ||
229 | 29 | |||
230 | 30 | Any additional suites may be run this way: | ||
231 | 31 | |||
232 | 32 | .. code-block:: bash | ||
233 | 33 | |||
234 | 34 | ./kewpie.py [options] --suite=any/suitedir/from/kewpie/percona_tests | ||
235 | 35 | ./kewpie.py --suite=crashme | ||
236 | 36 | 0 | ||
237 | === modified file 'doc-pxc/source/howtos/singlebox.rst' | |||
238 | --- doc-pxc/source/howtos/singlebox.rst 2012-07-30 09:26:20 +0000 | |||
239 | +++ doc-pxc/source/howtos/singlebox.rst 2014-02-06 09:58:46 +0000 | |||
240 | @@ -1,3 +1,6 @@ | |||
241 | 1 | .. _single_box: | ||
242 | 2 | |||
243 | 3 | ========================================== | ||
244 | 1 | How to setup 3 node cluster on single box | 4 | How to setup 3 node cluster on single box |
245 | 2 | ========================================== | 5 | ========================================== |
246 | 3 | 6 | ||
247 | @@ -23,7 +26,7 @@ | |||
248 | 23 | 26 | ||
249 | 24 | Then we should be able to start initial node as (from directory /usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64): :: | 27 | Then we should be able to start initial node as (from directory /usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64): :: |
250 | 25 | 28 | ||
252 | 26 | bin/mysqld_safe --defaults-file=/etc/my.4000.cnf | 29 | bin/mysqld_safe --defaults-file=/etc/my.4000.cnf --wsrep-new-cluster |
253 | 27 | 30 | ||
254 | 28 | Following output will let out know that node was started successfully: :: | 31 | Following output will let out know that node was started successfully: :: |
255 | 29 | 32 | ||
256 | @@ -61,15 +64,10 @@ | |||
257 | 61 | 64 | ||
258 | 62 | mysql -h127.0.0.1 -P5000 -e "CREATE DATABASE hello_peter" | 65 | mysql -h127.0.0.1 -P5000 -e "CREATE DATABASE hello_peter" |
259 | 63 | 66 | ||
260 | 64 | In this example variable :variable:`wsrep_urls` is being used instead of :variable:`wsrep_cluster_address`. With this configuration, node will first try to reach a cluster on port 4030, if there is no cluster node, then it will try on port 5030 and then 6030. If no nodes are up, it will start a new cluster. Variable :variable:`wsrep_urls` goes into the [mysql_safe] section so it's important that the mysql server instance is started with the `/bin/mysql_safe` and not `bin/mysqld`. | ||
261 | 65 | |||
262 | 66 | Configuration files (/etc/my.4000.cnf): :: | 67 | Configuration files (/etc/my.4000.cnf): :: |
263 | 67 | 68 | ||
264 | 68 | /etc/my.4000.cnf | 69 | /etc/my.4000.cnf |
265 | 69 | 70 | ||
266 | 70 | [mysqld_safe] | ||
267 | 71 | wsrep_urls=gcomm://192.168.2.21:4030,gcomm://192.168.2.21:5030,gcomm://192.168.2.21:6030,gcomm:// | ||
268 | 72 | |||
269 | 73 | [mysqld] | 71 | [mysqld] |
270 | 74 | port = 4000 | 72 | port = 4000 |
271 | 75 | socket=/tmp/mysql.4000.sock | 73 | socket=/tmp/mysql.4000.sock |
272 | @@ -78,6 +76,7 @@ | |||
273 | 78 | user=mysql | 76 | user=mysql |
274 | 79 | log_error=error.log | 77 | log_error=error.log |
275 | 80 | binlog_format=ROW | 78 | binlog_format=ROW |
276 | 79 | wsrep_cluster_address='gcomm://192.168.2.21:5030,192.168.2.21:6030' | ||
277 | 81 | wsrep_provider=/usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64/lib/libgalera_smm.so | 80 | wsrep_provider=/usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64/lib/libgalera_smm.so |
278 | 82 | wsrep_sst_receive_address=192.168.2.21:4020 | 81 | wsrep_sst_receive_address=192.168.2.21:4020 |
279 | 83 | wsrep_node_incoming_address=192.168.2.21 | 82 | wsrep_node_incoming_address=192.168.2.21 |
280 | @@ -86,7 +85,6 @@ | |||
281 | 86 | wsrep_provider_options = "gmcast.listen_addr=tcp://192.168.2.21:4030;" | 85 | wsrep_provider_options = "gmcast.listen_addr=tcp://192.168.2.21:4030;" |
282 | 87 | wsrep_sst_method=rsync | 86 | wsrep_sst_method=rsync |
283 | 88 | wsrep_node_name=node4000 | 87 | wsrep_node_name=node4000 |
284 | 89 | innodb_locks_unsafe_for_binlog=1 | ||
285 | 90 | innodb_autoinc_lock_mode=2 | 88 | innodb_autoinc_lock_mode=2 |
286 | 91 | 89 | ||
287 | 92 | 90 | ||
288 | @@ -94,9 +92,6 @@ | |||
289 | 94 | 92 | ||
290 | 95 | /etc/my.5000.cnf | 93 | /etc/my.5000.cnf |
291 | 96 | 94 | ||
292 | 97 | [mysqld_safe] | ||
293 | 98 | wsrep_urls=gcomm://192.168.2.21:4030,gcomm://192.168.2.21:5030,gcomm://192.168.2.21:6030,gcomm:// | ||
294 | 99 | |||
295 | 100 | [mysqld] | 95 | [mysqld] |
296 | 101 | port = 5000 | 96 | port = 5000 |
297 | 102 | socket=/tmp/mysql.5000.sock | 97 | socket=/tmp/mysql.5000.sock |
298 | @@ -105,6 +100,7 @@ | |||
299 | 105 | user=mysql | 100 | user=mysql |
300 | 106 | log_error=error.log | 101 | log_error=error.log |
301 | 107 | binlog_format=ROW | 102 | binlog_format=ROW |
302 | 103 | wsrep_cluster_address='gcomm://192.168.2.21:4030,192.168.2.21:6030' | ||
303 | 108 | wsrep_provider=/usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64/lib/libgalera_smm.so | 104 | wsrep_provider=/usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64/lib/libgalera_smm.so |
304 | 109 | wsrep_sst_receive_address=192.168.2.21:5020 | 105 | wsrep_sst_receive_address=192.168.2.21:5020 |
305 | 110 | wsrep_node_incoming_address=192.168.2.21 | 106 | wsrep_node_incoming_address=192.168.2.21 |
306 | @@ -113,16 +109,12 @@ | |||
307 | 113 | wsrep_provider_options = "gmcast.listen_addr=tcp://192.168.2.21:5030;" | 109 | wsrep_provider_options = "gmcast.listen_addr=tcp://192.168.2.21:5030;" |
308 | 114 | wsrep_sst_method=rsync | 110 | wsrep_sst_method=rsync |
309 | 115 | wsrep_node_name=node5000 | 111 | wsrep_node_name=node5000 |
310 | 116 | innodb_locks_unsafe_for_binlog=1 | ||
311 | 117 | innodb_autoinc_lock_mode=2 | 112 | innodb_autoinc_lock_mode=2 |
312 | 118 | 113 | ||
313 | 119 | Configuration files (/etc/my.6000.cnf): :: | 114 | Configuration files (/etc/my.6000.cnf): :: |
314 | 120 | 115 | ||
315 | 121 | /etc/my.6000.cnf | 116 | /etc/my.6000.cnf |
316 | 122 | 117 | ||
317 | 123 | [mysqld_safe] | ||
318 | 124 | wsrep_urls=gcomm://192.168.2.21:4030,gcomm://192.168.2.21:5030,gcomm://192.168.2.21:6030,gcomm:// | ||
319 | 125 | |||
320 | 126 | [mysqld] | 118 | [mysqld] |
321 | 127 | port = 6000 | 119 | port = 6000 |
322 | 128 | socket=/tmp/mysql.6000.sock | 120 | socket=/tmp/mysql.6000.sock |
323 | @@ -131,6 +123,7 @@ | |||
324 | 131 | user=mysql | 123 | user=mysql |
325 | 132 | log_error=error.log | 124 | log_error=error.log |
326 | 133 | binlog_format=ROW | 125 | binlog_format=ROW |
327 | 126 | wsrep_cluster_address='gcomm://192.168.2.21:4030,192.168.2.21:5030' | ||
328 | 134 | wsrep_provider=/usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64/lib/libgalera_smm.so | 127 | wsrep_provider=/usr/local/Percona-XtraDB-Cluster-5.5.24-23.6.342.Linux.x86_64/lib/libgalera_smm.so |
329 | 135 | wsrep_sst_receive_address=192.168.2.21:6020 | 128 | wsrep_sst_receive_address=192.168.2.21:6020 |
330 | 136 | wsrep_node_incoming_address=192.168.2.21 | 129 | wsrep_node_incoming_address=192.168.2.21 |
331 | @@ -139,5 +132,4 @@ | |||
332 | 139 | wsrep_provider_options = "gmcast.listen_addr=tcp://192.168.2.21:6030;" | 132 | wsrep_provider_options = "gmcast.listen_addr=tcp://192.168.2.21:6030;" |
333 | 140 | wsrep_sst_method=rsync | 133 | wsrep_sst_method=rsync |
334 | 141 | wsrep_node_name=node6000 | 134 | wsrep_node_name=node6000 |
335 | 142 | innodb_locks_unsafe_for_binlog=1 | ||
336 | 143 | innodb_autoinc_lock_mode=2 | 135 | innodb_autoinc_lock_mode=2 |
337 | 144 | 136 | ||
338 | === modified file 'doc-pxc/source/howtos/ubuntu_howto.rst' | |||
339 | --- doc-pxc/source/howtos/ubuntu_howto.rst 2013-12-30 17:01:54 +0000 | |||
340 | +++ doc-pxc/source/howtos/ubuntu_howto.rst 2014-02-06 09:58:46 +0000 | |||
341 | @@ -68,9 +68,6 @@ | |||
342 | 68 | # MyISAM storage engine has only experimental support | 68 | # MyISAM storage engine has only experimental support |
343 | 69 | default_storage_engine=InnoDB | 69 | default_storage_engine=InnoDB |
344 | 70 | 70 | ||
345 | 71 | # This is a recommended tuning variable for performance | ||
346 | 72 | innodb_locks_unsafe_for_binlog=1 | ||
347 | 73 | |||
348 | 74 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera | 71 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera |
349 | 75 | innodb_autoinc_lock_mode=2 | 72 | innodb_autoinc_lock_mode=2 |
350 | 76 | 73 | ||
351 | @@ -149,9 +146,6 @@ | |||
352 | 149 | # MyISAM storage engine has only experimental support | 146 | # MyISAM storage engine has only experimental support |
353 | 150 | default_storage_engine=InnoDB | 147 | default_storage_engine=InnoDB |
354 | 151 | 148 | ||
355 | 152 | # This is a recommended tuning variable for performance | ||
356 | 153 | innodb_locks_unsafe_for_binlog=1 | ||
357 | 154 | |||
358 | 155 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera | 149 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera |
359 | 156 | innodb_autoinc_lock_mode=2 | 150 | innodb_autoinc_lock_mode=2 |
360 | 157 | 151 | ||
361 | @@ -213,9 +207,6 @@ | |||
362 | 213 | # MyISAM storage engine has only experimental support | 207 | # MyISAM storage engine has only experimental support |
363 | 214 | default_storage_engine=InnoDB | 208 | default_storage_engine=InnoDB |
364 | 215 | 209 | ||
365 | 216 | # This is a recommended tuning variable for performance | ||
366 | 217 | innodb_locks_unsafe_for_binlog=1 | ||
367 | 218 | |||
368 | 219 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera | 210 | # This changes how InnoDB autoincrement locks are managed and is a requirement for Galera |
369 | 220 | innodb_autoinc_lock_mode=2 | 211 | innodb_autoinc_lock_mode=2 |
370 | 221 | 212 | ||
371 | 222 | 213 | ||
372 | === modified file 'doc-pxc/source/howtos/virt_sandbox.rst' | |||
373 | --- doc-pxc/source/howtos/virt_sandbox.rst 2012-06-27 10:05:05 +0000 | |||
374 | +++ doc-pxc/source/howtos/virt_sandbox.rst 2014-02-06 09:58:46 +0000 | |||
375 | @@ -34,7 +34,6 @@ | |||
376 | 34 | 34 | ||
377 | 35 | log_slave_updates | 35 | log_slave_updates |
378 | 36 | 36 | ||
379 | 37 | innodb_locks_unsafe_for_binlog=1 | ||
380 | 38 | innodb_autoinc_lock_mode=2 | 37 | innodb_autoinc_lock_mode=2 |
381 | 39 | innodb_buffer_pool_size=400M | 38 | innodb_buffer_pool_size=400M |
382 | 40 | innodb_log_file_size=64M | 39 | innodb_log_file_size=64M |
383 | 41 | 40 | ||
384 | === modified file 'doc-pxc/source/installation.rst' | |||
385 | --- doc-pxc/source/installation.rst 2013-12-30 17:01:54 +0000 | |||
386 | +++ doc-pxc/source/installation.rst 2014-02-06 09:58:46 +0000 | |||
387 | @@ -64,7 +64,6 @@ | |||
388 | 64 | 64 | ||
389 | 65 | binlog_format=ROW - In order for Galera to work correctly binlog format should be ROW | 65 | binlog_format=ROW - In order for Galera to work correctly binlog format should be ROW |
390 | 66 | default_storage_engine=InnoDB - MyISAM storage engine has only experimental support | 66 | default_storage_engine=InnoDB - MyISAM storage engine has only experimental support |
391 | 67 | innodb_locks_unsafe_for_binlog=1 - This is a recommended tuning variable for performance | ||
392 | 68 | innodb_autoinc_lock_mode=2 - This changes how InnoDB autoincrement locks are managed | 67 | innodb_autoinc_lock_mode=2 - This changes how InnoDB autoincrement locks are managed |
393 | 69 | 68 | ||
394 | 70 | Additional parameters to specify: :: | 69 | Additional parameters to specify: :: |
395 | @@ -81,7 +80,6 @@ | |||
396 | 81 | wsrep_sst_method=rsync | 80 | wsrep_sst_method=rsync |
397 | 82 | binlog_format=ROW | 81 | binlog_format=ROW |
398 | 83 | default_storage_engine=InnoDB | 82 | default_storage_engine=InnoDB |
399 | 84 | innodb_locks_unsafe_for_binlog=1 | ||
400 | 85 | innodb_autoinc_lock_mode=2 | 83 | innodb_autoinc_lock_mode=2 |
401 | 86 | 84 | ||
402 | 87 | Detailed list of variables can be found in :ref:`wsrep_system_index` and :ref:`wsrep_status_index`. | 85 | Detailed list of variables can be found in :ref:`wsrep_system_index` and :ref:`wsrep_status_index`. |
403 | 88 | 86 | ||
404 | === removed file 'doc-pxc/source/percona-theme/built' |
All fine except:
wsrep_ cluster_ address= gcomm:/ /192.168. 2.21
parts in singlebox.rst
it should be like:
wsrep_cluster_ address= 'gcomm: //127.0. 0.1:15010, 127.0.0. 1:16010' options = "gmcast. listen_ addr=tcp: //127.0. 0.1:14010"
wsrep_provider_
(ie. cluster address of each should contain listen_addr of other nodes).