GCDW元数据服务—Foundationdb Client安装部署

192.168.146.21、192.168.146.22、192.168.146.23  3个为gcdw集群准备的节点上安装foundationdb clent

  • 三个节点上安装fdb客户端

192.168.146.21节点:

[root@rhel73-2 GCDW]# rpm -ivh foundationdb-clients-6.2.27-1.el7.x86_64.rpm

192.168.146.22节点:

[root@rhel73-2 GCDW]# rpm -ivh foundationdb-clients-6.2.27-1.el7.x86_64.rpm

192.168.146.23节点:

[root@rhel73-2 GCDW]# rpm -ivh foundationdb-clients-6.2.27-1.el7.x86_64.rpm

  • 拷贝fdb server(192.168.146.20)上的外部访问文件到三个gcdw集群节点上,注意权限需跟fdb server保持一致

192.168.146.20节点上操作:

----rsync -p保持文件的权限属性 -o保持文件的属主属性 -g保持文件的属组属性
[root@rhel73-1 foundationdb]# ls
fdb.cluster foundationdb.conf
[root@rhel73-1 foundationdb]# rsync -p -o -g fdb.cluster [email protected]:/etc/foundationdb/
[email protected]'s password:
[root@rhel73-1 foundationdb]# rsync -p -o -g fdb.cluster [email protected]:/etc/foundationdb/
[email protected]'s password:
[root@rhel73-1 foundationdb]# rsync -p -o -g fdb.cluster [email protected]:/etc/foundationdb/
[email protected]'s password:

  • 测试fdb

fdb客户端状态查看(可在192.168.146.20、192.168.146.21、192.168.146.22、192.168.146.23任意节点上查看)

[root@rhel73-2 foundationdb]# fdbcli
Using cluster file `fdb.cluster'.

The database is available.

Welcome to the fdbcli. For help, type `help'.
fdb> status

Using cluster file `fdb.cluster'.

Configuration:
Redundancy mode - single
Storage engine - memory-2
Coordinators - 1
Usable Regions - 1

Cluster:
FoundationDB processes - 1
Zones - 1
Machines - 1
Memory availability - 1.5 GB per process on machine with least available
>>>>> (WARNING: 4.0 GB recommended) <<<<<
Fault Tolerance - 0 machines
Server time - 08/01/22 11:25:30

Data:
Replication health - Healthy
Moving data - 0.000 GB
Sum of key-value sizes - 0 MB
Disk space used - 105 MB

Operating space:
Storage server - 0.8 GB free on most full server
Log server - 2.6 GB free on most full server

Workload:
Read rate - 20 Hz
Write rate - 0 Hz
Transactions started - 7 Hz
Transactions committed - 0 Hz
Conflict rate - 0 Hz

Backup and DR:
Running backups - 0
Running DRs - 0

Client time: 08/01/22 11:25:30

测试192.168.146.20节点上输入数据

[root@rhel73-1 foundationdb]# fdbcli
Using cluster file `fdb.cluster'.

The database is available.

Welcome to the fdbcli. For help, type `help'.

fdb> begin
Transaction started
fdb> writemode on
fdb> set a b
fdb> set a c
fdb> get a
`a' is `c'
fdb> commit
Committed (6104149708)

测试192.168.146.21/22/23节点上获取数据

[root@rhel73-2 foundationdb]# fdbcli
Using cluster file `fdb.cluster'.

The database is available.

Welcome to the fdbcli. For help, type `help'.

fdb> get a
`a' is `c'

你可能感兴趣的:(GCDW,GBase,8a,foundation‘d‘b,linux,数据库,db,database)