本篇内容介绍了“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配置方法有哪些”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联-成都网站建设公司网站,小编将为大家输出更多高质量的实用文章!