admin 管理员组

文章数量: 887021


2024年3月12日发(作者:api接口和po接口)

GlusterFS Storage Pool 高可用及负载均衡配置

1.

概述 .................................................................................................................................................. 1

2.

GlusterFS 安装配置 ........................................................................................................................ 2

3.

CTDB简介 ........................................................................................................................................ 2

4.

CTDB安装配置 ................................................................................................................................ 3

4.1.

4.2.

4.3.

通过源码编译安装 .............................................................................................................. 3

通过yum安装 ..................................................................................................................... 3

CTDB配置 ............................................................................................................................. 3

5.

CTDB高可用测试 ............................................................................................................................ 5

5.1.

关于CTDB虚拟IP和CTDB集群内节点的实IP之间的关系 ........................................... 7

6.

RR DNS简介 ..................................................................................................................................... 9

7.

RR DNS master/slave安装配置 ....................................................................................................... 9

7.1.

7.2.

7.3.

通过yum安装 ..................................................................................................................... 9

通过源码安装 ...................................................................................................................... 9

Master/Slave配置 .............................................................................................................. 10

7.3.1.

BIND Master的配置 ............................................................................................... 10

Zone配置文件中关键字说明............................................................................................... 12

7.3.2.

BIND Slave的配置 .................................................................................................. 13

8.

RR DNS负载均衡测试 ................................................................................................................... 14

参考资料 ............................................................................................................................................... 15

1. 概述

通过为GlusterFS 存储池配置CTDB以及RR DNS ,实现CIFS、NFS、Gluster Native输出的高可用和负载均衡。

1 / 15

CIFS

Client

NFS

Client

Gluster

Client

Other

Client

IP Net

work

Gluster Storage Pool

RR DNS

Master

CTDB

Active

CIFS

GlusterFS

Client

NFS

RR DNS

Slave

CTDB

Active

CIFS

GlusterFS

Client

NFS

CTDB

Active

CIFS

GlusterFS

Client

GlusterFS

NFS

...

GlusterFSGlusterFS

2. GlusterFS 安装配置

GlusterFS安装:略。

GlusterFS卷必须配置为副本模式,确保底层集群文件系统是高可用的。

3. CTDB简介

CTDB is a cluster implementation of the TDB database used by Samba and other projects to store temporary data. If

an application is already using TDB for temporary data it is very easy to convert that application to be cluster aware and

use CTDB instead.

Features include:

CTDB provides a TDB that has consistent data and consistent locking across all nodes in a cluster.

CTDB is very fast.

In case of node failures, CTDB will automatically recover and repair all TDB databases that it manages.

CTDB is the core component that provides pCIFS ("parallel CIFS") with Samba3/4.

CTDB provides HA features such as node monitoring, node failover, and IP takeover.

CTDB provides a reliable messaging transport to allow applications linked with CTDB to communicate to other

instances of the application running on different nodes in the cluster.

CTDB has pluggable transport backends. Currently implemented backends are TCP and Infiniband.

CTDB supports a system of application specific management scripts, allowing applications that depend on network

or filesystem resources to be managed in a highly available manner on a cluster.

2 / 15


本文标签: 配置 集群 可用