On 2012-11-12 12:42, Sergey Rudenko wrote:
> Thanks a lot, got it.
>
> Some additional questions:
>
> 1) Is it good practice or not - by your opinion? (to have a
> backup/reference node)
If you can afford it - definitely yes.
> 2) Am I right in my actions regarding to setting wsrep_urls?
> - I start a cluster with 'gcomm://' on Node A
If we're talking about wsrep_urls parameter, then I'd do
wsrep_urls=gcomm://B,gcomm://C,gcomm://
this way you would not need to restart it below, only remove gcomm://
part (you need to restart it only because mysqld_safe needs to be
restarted to read new wsrep_urls value).
> - then join B and C to cluster
> - then change wsrep_urls on Node A to 'gcomm://B,gcomm://C' and
> restart it
> Are these actions exactly correct or may be is there a better way?
Well, see above. And don't forget to specify ports in wsrep_urls.
> Sorry but it's really difficult to understand a mechanism of cluster
> URLs =)
> A lot of howto's about PXC/Galera advise just to leave 'gcomm://' on
> 1st
> node, but if I understood right, it's a way to split-brain.
No, it is not split-brain, but "split-cluster" which is even worse (a
node forms a separate cluster of his own). Never leave gcomm:// in
configuration. It is only for bootstrapping the cluster.