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: