Galera replication

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

  • 所有者: codership/galera
  • 平台: Linux
  • 许可证: GNU General Public License v2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

这是 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)

主要指标

概览
名称与所有者codership/galera
主编程语言C++
编程语言Python (语言数: 11)
平台Linux
许可证GNU General Public License v2.0
所有者活动
创建于2014-04-19 21:29:08
推送于2025-03-02 11:52:50
最后一次提交
发布数55
最新版本名称release_26.4.22 (发布于 )
第一版名称release_25.3.5 (发布于 )
用户参与
星数465
关注者数63
派生数178
提交数4.9k
已启用问题?
问题数535
打开的问题数224
拉请求数74
打开的拉请求数19
关闭的拉请求数41
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

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: