Synchronous multi-master replication library
C++ C Shell Python Perl M4
Latest commit 2f497c1 Feb 16, 2017 @philip-galera philip-galera committed on GitHub Merge pull request #451 from shinguz/patch-1
Update saved_state.cpp
Failed to load latest commit information.
asio GAL-407 Explicitly disallow SSLv2, SSLv3, TLS 1.0 Sep 23, 2016
chromium Refs codership/galera#321 Sep 19, 2015
common Travis CI support plus Apr 22, 2015
debian GAL-470, codership/galera#432 Filter out nondeterministic tests Jan 5, 2017
docs Documentation moved to Sep 20, 2014
galera Update saved_state.cpp Feb 9, 2017
galerautils GAL-480 Dec 2, 2016
garb refs codership/galera#367 use system ASIO if available Nov 20, 2015
gcache GAL-484 Dec 17, 2016
gcomm Merge remote-tracking branch 'galera/3.x' into 3.x Jan 25, 2017
gcs GAL-480 reversed "cleanups" that resulted in regression: JOINER no lo… Dec 9, 2016
man codership/galera#234 Make the man page file name consistent with its … Feb 20, 2015
scripts GAL-470, codership/galera#432 Filter out nondeterministic tests Jan 5, 2017
tests GAL-423 Fix incorrect test name and remove unnecessary disablement Jan 3, 2017 Refs #59: Fixes compilation on PowerPC to the extent possible (in QEM… Jun 13, 2014
.bzrignore Refs #779: Sep 12, 2013
.gitignore Refs #848:fix code according to review. May 5, 2014
.travis.yml Switching back to container-based builds May 31, 2015
AUTHORS Refs #421 - merging cleanups and changes that already happened in lp:… Feb 1, 2011 Create Feb 8, 2016
CONTRIBUTORS.txt Merge branch '3.x' of git:// into ottok-3.x Jul 4, 2016
CONTRIBUTOR_AGREEMENT.txt Minor spelling and formatting fixes in CONTRIBUTOR files Jul 11, 2016
COPYING refs #831 - openssl exception to Galera license (merged [3449] from 2… Jan 27, 2014
LICENSE Merge r2951 from 2.x: refs #741 - Be consistent in licensing. Feb 9, 2013
README Change launchpad references in README Jul 7, 2016
SConscript refs #775: rename libgalera_smm.dylib to for consist… Jul 23, 2013
SConstruct Bump up GALERA_VER in SConstruct Jan 25, 2017


Codership Oy

This is Galera replication - Codership's implementation of the write set 
replication (wsrep) interface (
The software and  other files in this directory unless otherwise noted
are distributed under GPLv2, see COPYING for details.

BUILDING - general

Build Requirements:
* Scons build system
* Check unit test library
* Boost devel package
* OpenSSL devel package

* Asio C++ library devel package (

To compile, in Galera root directory do either:
 $ scons
(default optimized build)
 $ ./scripts/
(see ./scripts/ --help for information on options)

To build MySQL/Galera demo distribution, clone into some directory (hereafter 
<MYSQL_DIR>) and run build script from this directory (hereafter <GALERA_DIR>):

 $ cd <MYSQL_DIR>
 $ git clone --single-branch --branch 5.6 \
 $ cd <GALERA_DIR>
 $ MYSQL_SRC=<MYSQL_DIR>/mysql-wsrep ./scripts/mysql/ -b -s -o -t

After successful build, demo package can be found under scripts/mysql.

BUILDING on Ubuntu 16.04

 1) apt-get install libasio-dev check scons libboost-program-options-dev \
       libboost-dev  libssl-dev

Then proceed as described above.


CentOS/RHEL by default uses a very old version of GCC and a likewise ancient
version of BOOST that lacks important features. In order to build Galera on
CentOS/RHEL one needs to:

 1) Install gcc44 and gcc44-c++ packages and set CC and CXX variables
    # yum install gcc44 gcc44-c++
    # export CC=gcc44
    # export CXX=g++44
 2) Remove standard boost and boost-devel packages (if present)
 3) Install boost141-devel package:
    # yum install boost141-devel
 4) Make link from /usr/include/boost to /usr/include/boost141:
    # cd /usr/include
    # ln -sf boost141/boost boost
 5) Install scons check-devel openssl-devel
    # yum install scons check-devel openssl-devel

Then proceed as described above.

For more information, see:
* Codership mailing list:
* Codership home page: