ITPub博客

首页 > 应用开发 > IT综合 > cib.xml for 2resource2group4score

cib.xml for 2resource2group4score

原创 IT综合 作者:Steven1981 时间:2009-11-24 10:22:48 0 删除 编辑
每个资源组只设置一个资源,建议初学者先用这种模式。容易理解SCORE的计算规则[@more@]



























































































把每个资源设到单个GROUP中,分数计算很容易理解(不像把两个资源加到同一个组里,搞不懂到底按哪个算分)
我们可以用以下命令来查看资源的SCORE
2>&1 /usr/heartbeat/sbin/ptest -LVVVVVVVV|grep -E "dump_node_scores"
资源:IPADDR.SCORE
ptest[1985]: 2009/11/21_14:23:47 debug: debug2: dump_node_scores: native_color: IPaddr_10_2_225_225 allocation score on mysql3: 500
ptest[1985]: 2009/11/21_14:23:47 debug: debug2: dump_node_scores: native_color: IPaddr_10_2_225_225 allocation score on mysql4: 350
资源:mysql.SCORE
ptest[1985]: 2009/11/21_14:23:47 debug: debug2: dump_node_scores: native_color: mysql allocation score on mysql3: 500
ptest[1985]: 2009/11/21_14:23:47 debug: debug2: dump_node_scores: native_color: mysql allocation score on mysql4: 350
但有一个问题是:
 当想用colocation把两个资源放到同一个NODE上时,
....




....
会出现以下情况:
--------------------
理论上, 会先检查TO指定的资源,如果达到切换标准,TO资源切换,FROM资源也切换.
但,在<2resource2group4score>配置环境中,
不管如何对换FROM与TO指定的资源.
只要资源IPaddr_10_2_225_225的SCORE小于对方NODE,马上都切换过去了.
但MYSQL资源SCORE小于对方,只是会重启资源,直到TO指定的资源,有一个NODE为负值.
这应该是个BUG.或是哪里没有设置好(因为GUI看这样的设置会报错,但这样的设置也像是已经起作用了!)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/703656/viewspace-1028992/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    127
  • 访问量
    855002