Percona XtraDB Cluster (PXC) is different enough from async replication that it can be a bit of a puzzle how to do things the Galera way. This post will attempt to illustrate the basics of setting up 2 node PXC cluster from scratch.
Requirements
Two servers (could be VMs) that can talk to each other. I’m using CentOS for this post. Here’s a dirt-simple Vagrant setup: https://github.com/jayjanssen/two_centos_nodes to make this easy (on Virtualbox).
These servers are talking over the 192.168.70.0/24 internal network for our example.
jayj@~/Src $ git clone https://github.com/jayjanssen/two_centos_nodes.git jayj@~/Src $ cd two_centos_nodes jayj@~/Src/two_centos_nodes $ vagrant up Bringing machine 'node1' up …[Read more]