Buy Percona ServicesBuy Now!

Quick Start Guide for Percona XtraDB Cluster

This guide describes the procedure for setting up Percona XtraDB Cluster.

Examples provided in this guide assume there are three Percona XtraDB Cluster nodes, as a common choice for trying out and testing:

Node Host IP
Node 1 pxc1 192.168.70.61
Node 2 pxc2 192.168.70.62
Node 3 pxc3 192.168.70.63

Note

Avoid creating a cluster with two or any even number of nodes, because this can lead to split brain. For more information, see Cluster Failover.

The following procedure provides an overview with links to details for every step:

  1. Install Percona XtraDB Cluster on all nodes and set up root access for them.

    It is recommended to install from official Percona repositories:

  2. Configure all nodes with relevant settings required for write-set replication.

    This includes path to the Galera library, location of other nodes, etc.

  3. Bootstrap the first node to initialize the cluster.

    This must be the node with your main database, which will be used as the data source for the cluster.

  4. Add other nodes to the cluster.

    Data on new nodes joining the cluster is overwritten in order to synchronize it with the cluster.

  5. Verify replication.

    Although cluster initialization and node provisioning is performed automatically, it is a good idea to ensure that changes on one node actually replicate to other nodes.

  6. Install ProxySQL.

    To complete the deployment of the cluster, a high-availability proxy is required. We recommend installing ProxySQL on client nodes for efficient workload management across the cluster without any changes to the applications that generate queries.

Percona Monitoring and Management

Percona Monitoring and Management is the best choice for managing and monitoring Percona XtraDB Cluster performance. It provides visibility for the cluster and enables efficient troubleshooting.

Visit Percona Store


General Inquiries

For general inquiries, please send us your question and someone will contact you.