Installing Percona XtraDB Cluster from Binaries

Ready-to-use binaries are available from the Percona XtraDB Cluster download page, including:

  • RPM packages for RHEL 5 and RHEL 6
  • Debian packages
  • Generic .tar.gz packages

Using Percona Software Repositories

Percona provides repositories for yum (RPM packages for Red Hat, CentOS, Amazon Linux AMI, and Fedora) and apt (.deb packages for Ubuntu and Debian) for software such as Percona Server, XtraDB, XtraBackup, and Percona Toolkit. This makes it easy to install and update your software and its dependencies through your operating system’s package manager.

This is the recommend way of installing where possible.

Initial configuration

In order to start using XtraDB Cluster, you need to configure my.cnf file. Following options are needed:

wsrep_provider — a path to Galera library.
wsrep_cluster_address — cluster connection URL.
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
innodb_locks_unsafe_for_binlog=1

Additional parameters to tune:

wsrep_slave_threads   # specifies amount of threads to apply events
wsrep_sst_method

Example:

wsrep_provider=/usr/lib64/libgalera_smm.so
wsrep_cluster_address=gcomm://10.11.12.206
wsrep_slave_threads=8
wsrep_sst_method=rsync
#wsrep_sst_method=xtrabackup - alternative way to do SST
wsrep_cluster_name=percona_test_cluster
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
innodb_locks_unsafe_for_binlog=1

Install XtraBackup SST method

To use Percona XtraBackup for State Transfer method (copy snapshot of data between nodes) you can use the regular xtrabackup package with the script what supports Galera information. You can take innobackupex script from source code innobackupex.

To inform node to use xtrabackup you need to specify in my.cnf:

wsrep_sst_method=xtrabackup
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)

Table Of Contents

Previous topic

Resources

Next topic

Percona yum Repository

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.
]]>