Good progress, you figured out the gcomm listen port configuration correctly.
For SST to work, you need to set wsrep_sst_receive_address to the
address where mysqld is listening for connections, and catenate port
after ':' tag. Your configuration could be .e.g:
wsrep_sst_receive_address=192.168.1.10:9307
Pay attention also to the wsrep_sst_auth setting, the account you
specify here must have been granted enough privileges so that donor
can connect in through whatever you specified
'wsrep_sst_receive_address' and load mysql dump.
-seppo
P.S. you seem to enable performance schema there. There was some
trouble with PFS with regard to mysqldump SST. I'm not sure if your
build will have issues with it, but you will see in donor error log if
PFS turns out a kill joy.
Quoting Patrick Crews <patric...@percona.com>:
> --
> You received this message because you are subscribed to the Google
> Groups "codership" group.
> To post to this group, send email to codersh...@googlegroups.com.
> To unsubscribe from this group, send email to
> codership-tea...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/codership-team?hl=en.
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 is 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).
Best regards,
Alex
--
Alexey Yurchenko,
Codership Oy, www.codership.com
Skype: alexey.yurchenko, Phone: +358-400-516-011
Just as an idea for the future: Galera could bind its own stuff to
listen on some random (available) ports, and make it visible via SHOW
STATUS. Then a joining node would first connect to the mysql port
(3306) and find out the galera specific ports, then connect to those
ports. This would make the 3306 port the only one the user needs to
care about.
Otoh it would make firewall maintenance a mess, so many user will
prefer to configure the port manually or at least have a default port
that is constant.
henrik
--
henri...@avoinelama.fi
+358-40-8211286 skype: henrik.ingo irc: hingo
www.openlife.cc
My LinkedIn profile: http://www.linkedin.com/profile/view?id=9522559