重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
本篇内容介绍了“GBase8s cm配置方法有哪些”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
成都创新互联公司主营宁洱网站建设的网络公司,主营网站建设方案,手机APP定制开发,宁洱h5微信小程序定制开发搭建,宁洱网站营销推广欢迎宁洱等地区企业咨询
g_west group - - i=10
ol_54_pri onsoctcp 192.168.152.25 23701 g=g_west
ol_54_sds onsoctcp 192.168.152.26 23702 g=g_west
cm_update group - - i=12,c=0
oltp onsoctcp 192.168.152.25 25000 g=cm_update
NAME cm1
LOGFILE ${GBASEDBTDIR}/tmp/cm1.log
CM_TIMEOUT 40
SECONDARY_EVENT_TIMEOUT 20
EVENT_TIMEOUT 30
SQLHOSTS LOCAL
LOG 1
DEBUG 1
CLUSTER main
{
GBASEDBTSERVER g_west
SLA oltp DBSERVERS=PRI+SDS WORKERS=16
FOC ORDER=ENABLED TIMEOUT=10 RETRY=1 PRIORITY=1
}
启动cm
export GBASEDBTSQLHOSTS=$GBASEDBTDIR/etc/sqlhosts.cm1
oncmsm -c $GBASEDBTDIR/etc/config.cm1
关闭CM
oncmsm -k cm1
在主节点创建sqlhosts.cm1:内容
g_west group - - i=10
ol_54_pri onsoctcp 192.168.152.25 23701 g=g_west
ol_54_sds onsoctcp 192.168.152.26 23702 g=g_west
cm_update group - - i=12,c=0
oltp_all1 onsoctcp 192.168.152.25 23000 g=cm_update
oltp_all2 onsoctcp 192.168.152.26 23000 g=cm_update
cm_read group - - i=14,c=0
oltp_read1 onsoctcp 192.168.152.25 23001 g=cm_read
oltp_read2 onsoctcp 192.168.152.26 23001 g=cm_read
NAME cm1
LOGFILE ${GBASEDBTDIR}/tmp/cm1.log
CM_TIMEOUT 40
SECONDARY_EVENT_TIMEOUT 20
EVENT_TIMEOUT 30
SQLHOSTS LOCAL
LOG 1
DEBUG 1
CLUSTER main
{
GBASEDBTSERVER g_west
SLA oltp_all1 DBSERVERS=PRI WORKERS=16
SLA oltp_read1 DBSERVERS=SDS WORKERS=16
FOC ORDER=ENABLED TIMEOUT=10 RETRY=1 PRIORITY=1
}
chown GBASEDBT:GBASEDBT sqlhosts.cm1 onconfig.cm1
chmod 660 sqlhosts.cm1 onconfig.cm1
export GBASEDBTDIR=/home/54_For_SSC/
export GBASEDBTSQLHOSTS=/home/54_For_SSC/etc/sqlhosts.cm1
g_west group - - i=10
ol_54_pri onsoctcp 192.168.152.25 23701 g=g_west
ol_54_sds onsoctcp 192.168.152.26 23702 g=g_west
cm_update group - - i=12,c=0
oltp_all1 onsoctcp 192.168.152.25 23000 g=cm_update
oltp_all2 onsoctcp 192.168.152.26 23000 g=cm_update
cm_read group - - i=14,c=0
oltp_read1 onsoctcp 192.168.152.25 23001 g=cm_read
oltp_read2 onsoctcp 192.168.152.26 23001 g=cm_read
NAME cm2
LOGFILE ${GBASEDBTDIR}/tmp/cm2.log
CM_TIMEOUT 40
SECONDARY_EVENT_TIMEOUT 20
EVENT_TIMEOUT 30
SQLHOSTS LOCAL
LOG 1
DEBUG 1
CLUSTER main
{
GBASEDBTSERVER g_west
SLA oltp_all2 DBSERVERS=PRI WORKERS=16
SLA oltp_read2 DBSERVERS=SDS WORKERS=16
FOC ORDER=ENABLED TIMEOUT=10 RETRY=1 PRIORITY=2}
chown GBASEDBT:GBASEDBT sqlhosts.cm2 onconfig.cm2
chmod 660 sqlhosts.cm2 onconfig.cm2
export GBASEDBTDIR=/home/54_For_SDS/
export GBASEDBTSQLHOSTS=/home/54_For_SDS/etc/sqlhosts.cm1
oncmsm -c /home/54_For_SSC/etc/config.cm1
在SDS节点启动cm2管理器:
oncmsm -c /home/54_For_SSC/etc/config.cm2
onstat -g cmsm
“GBase8s cm配置方法有哪些”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联网站,小编将为大家输出更多高质量的实用文章!