Resources

In general there are 4 resources that need to be different when you want to run several MySQL/Galera nodes on one host:

  1. data directory
  2. mysql client port and/or address
  3. galera replication listen port and/or address
  4. receive address for state snapshot transfer

and later incremental state transfer receive address will be added to the bunch. (I know, it is kinda a lot, but we don’t see how it can be meaningfully reduced yet).

The first two are the usual mysql stuff.

You figured out the third. It is also possible to pass it via:

wsrep_provider_options="gmcast.listen_addr=tcp://127.0.0.1:5678"

as most other Galera options. This may save you some extra typing.

The fourth one is wsrep_sst_receive_address. This is the address at which the node will be listening for and receiving the state. Note that in galera cluster _joining_ nodes are waiting for connections from donors. It goes contrary to tradition and seems to confuse people time and again, but there are good reasons it was made like that.

If you use mysqldump SST it should be the same as this mysql client connection address plus you need to set wsrep_sst_auth variable to hold user:password pair. The user should be privileged enough to read system tables from donor and create system tables on this node. For simplicity that could be just the root user. Note that it also means that you need to properly set up the privileges on the new node before attempting to join the cluster.

If you use rsync or xtrabackup SST, wsrep_sst_auth is not necessary unless your SST script makes use of it. wsrep_sst_address can be anything local (it may even be the same on all nodes provided you’ll be starting them one at a time).

Percona XtraDB Cluster
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Previous topic

About Percona XtraDB Cluster

Next topic

Installing Percona XtraDB Cluster from Binaries

This Page



© Copyright 2012, Percona Inc.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
Created using Sphinx 1.0.7.
This documentation is developed in Launchpad as part of the Percona XtraDB Cluster source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
]]>