Galera replication

同步多主站复制库。(Synchronous multi-master replication library)

  • Owner: codership/galera
  • Platform: Linux
  • License:: GNU General Public License v2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

这是 Galera 复制 -- Codership 对写集复制(wsrep)接口(https://github.com/codership/wsrep-API)的实现。

除非另有说明,本目录中的软件和其他文件都是在GPLv2下发布的,详见 COPYING

构建 -- 通用

构建要求:

可选:

要编译,在 Galera 根目录下,可以这样做。

# 默认优化构建
$ scons

或者

# 请运行 ./scripts/build.sh --help 查看关于选项的更多信息
$ ./scripts/build.sh

(关于选项的信息,请参见./scripts/build.sh --help)

要建立 MySQL/Galera 演示版,请克隆 https://github.com/codership/mysql-wsrep 到某个目录(以下简称 <MYSQL_DIR>),并从这个目录(以下简称 <GALERA_DIR>)运行构建脚本。

$ cd <MYSQL_DIR>
$ git clone --single-branch --branch 5.6 \
       https://github.com/codership/mysql-wsrep.git
$ cd <GALERA_DIR>
$ MYSQL_SRC=<MYSQL_DIR>/mysql-wsrep ./scripts/mysql/build.sh -b -s -o -t

构建成功后,可以在脚本/mysql 下找到演示包。

在 Ubuntu 16.04 或更高版本上构建

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

然后按上述步骤进行。

在 CentOS/RHEL 6或 更高版本上进行构建:

1) yum install gcc gcc-c++ scons boost-devel check-devel

然后按上述步骤进行。

更多信息,请参见:


(The first version translated by vz on 2020.09.16)

Main metrics

Overview
Name With Ownercodership/galera
Primary LanguageC++
Program languagePython (Language Count: 11)
PlatformLinux
License:GNU General Public License v2.0
所有者活动
Created At2014-04-19 21:29:08
Pushed At2025-03-02 11:52:50
Last Commit At
Release Count55
Last Release Namerelease_26.4.22 (Posted on )
First Release Namerelease_25.3.5 (Posted on )
用户参与
Stargazers Count465
Watchers Count63
Fork Count178
Commits Count4.9k
Has Issues Enabled
Issues Count535
Issue Open Count224
Pull Requests Count74
Pull Requests Open Count19
Pull Requests Close Count41
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

Codership Oy
http://www.codership.com
info@codership.com

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

BUILDING - general

Build Requirements:

Optional:

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

To build MySQL/Galera demo distribution, clone
https://github.com/codership/mysql-wsrep 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
https://github.com/codership/mysql-wsrep.git
$ cd <GALERA_DIR>
$ MYSQL_SRC=<MYSQL_DIR>/mysql-wsrep ./scripts/mysql/build.sh -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.

BUILDING on CentOS/RHEL 5

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
    accordingly:

    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: