小程序容器助力企业在金融与物联网领域实现高效合规运营,带来的新机遇与挑战如何管理?
374
2023-12-29
本篇内容介绍了“GBase8s cm配置方法有哪些”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
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配置方法有哪些”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~