EsgynDB/Trafodion DCS配置HA
Trafodion通过DCS作为客户端和数据库服务端的连接桥梁。默认情况下,Trafodion安装完只有一个DCSMaster进程,每个Trafodion节点一个DCSServer进程。殊不知,DCS是可以配置HA来保证高可用和稳定性。
Trafodion安装过程中可以配置DCS HA,配置DCS HA需要配置以下三个参数:Floating IP、Interface、Backup Master Nodes
Enable DCS High Avalability (Y/N) [N]: Y
Enter Floating IP address for DCS HA: 10.10.11.250
Enter interface for Floating IP address [eth0]: eth1
Enter DCS Backup Master Nodes for DCS HA (comma separated): n13,n14
当然,如果是已经安装好Trafodion环境,且之前安装的环境并没有配置DCS HA,也可以通过手工的方法配置DCS HA。手工配置DCS HA需要注意以下几项,
1 修改dcs-site.xml添加以下配置,并同步到每个节点
<property>
<name>dcs.master.floating.ip</name>
<value>true</value>
</property>
<property>
<name>dcs.master.floating.ip.external.interface</name>
<value>eth1</value>
</property>
<property>
<name>dcs.master.floating.ip.external.ip.address</name>
<value>10.10.11.250</value>
</property>
2 修改backup-master添加备份DCSMaster节点,并同步到每个节点
[trafodion@n13 conf]$ cat backup-masters
n13.trafodion.local
n14.trafodion.local
3 修改/etc/sudoers.d/trafodion添加以下内容,同步到每个节点
## Trafodion Floating IP commands
Cmnd_Alias IP = /sbin/ip
Cmnd_Alias ARP = /sbin/arping
## Allow Trafodion id to run commands needed to configure floating IP
%trafodion ALL = NOPASSWD: IP,ARP
## Allow trafodion id to run commands needed for backup and restore
%trafodion ALL =(hbase) NOPASSWD: /usr/bin/hbase
4 修改/etc/trafodion/trafodion_config设置enable_ha为true,同步到每个节点
[trafodion@n13 conf]$ cat /etc/trafodion/trafodion_config | grep 'ENABLE_HA'
export ENABLE_HA="true"
5 重启DCS
dcsstop
dcsstart
6 使用trafci.sh或修改trafci中的默认IP通过Floating Ip连接数据库(下面的10.10.11.250即dcs-site.xml中配置的Floating Ip)
[trafodion@n13 conf]$ /home/trafodion/esgynDB-2.2./trafci/bin/trafci.sh -h 10.10.11.250:23400 -u zz -p zz
Welcome to EsgynDB Enterprise Command Interface
Copyright (c) 2015-2016 Esgyn Corporation
Host Name/IP Address: 10.10.11.250:23400
User Name: zz
Unable to align display for multibyte characters. Try relaunching TrafCI with -Djava.awt.headless=true
Connected to EsgynDB Enterprise
SQL>
————————————————
版权声明:本文为CSDN博主「post_yuan」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Post_Yuan/article/details/54950660
相关文章