ldirectord 用来检测realserver的可用性,但是如果ldirectord失败该怎么办

怎么保证ldirectord的高可用,不清楚heartbeat是否可以检测?继续查资料!

如果那位大侠可以指点一二不胜感激!

Forums:

我关闭ldirectord后,ipvs列表清空,是不是那里配置的不对?
这样当ldirectord失败后,集群不是就完了吗?

所以要双击热备。

怎么热备??

heartbeat 配置 respawn参数 的运行日志,配置respawn 监控 ldirectord也是出现类似错误,启动多次后都失败,进程关闭

heartbeat[14147]: 2007/12/20_13:18:10 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[14147]: 2007/12/20_13:18:10 info: Starting child client "/usr/lib/heartbeat/ipfail" (106,114)
heartbeat[14176]: 2007/12/20_13:18:11 info: Starting "/usr/lib/heartbeat/ipfail" as uid 106 gid 114 (pid 14176)
heartbeat[14147]: 2007/12/20_13:18:11 WARN: Exiting /usr/lib/heartbeat/ipfail process 14176 returned rc 126.
heartbeat[14147]: 2007/12/20_13:18:11 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[14147]: 2007/12/20_13:18:11 info: Starting child client "/usr/lib/heartbeat/ipfail" (106,114)
heartbeat[14177]: 2007/12/20_13:18:12 info: Starting "/usr/lib/heartbeat/ipfail" as uid 106 gid 114 (pid 14177)
heartbeat[14147]: 2007/12/20_13:18:12 WARN: Exiting /usr/lib/heartbeat/ipfail process 14177 returned rc 126.
heartbeat[14147]: 2007/12/20_13:18:12 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[14147]: 2007/12/20_13:18:12 info: Starting child client "/usr/lib/heartbeat/ipfail" (106,114)
heartbeat[14178]: 2007/12/20_13:18:13 info: Starting "/usr/lib/heartbeat/ipfail" as uid 106 gid 114 (pid 14178)
heartbeat[14147]: 2007/12/20_13:18:13 WARN: Exiting /usr/lib/heartbeat/ipfail process 14178 returned rc 126.
heartbeat[14147]: 2007/12/20_13:18:13 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[14147]: 2007/12/20_13:18:13 info: Starting child client "/usr/lib/heartbeat/ipfail" (106,114)
heartbeat[14179]: 2007/12/20_13:18:14 info: Starting "/usr/lib/heartbeat/ipfail" as uid 106 gid 114 (pid 14179)
heartbeat[14147]: 2007/12/20_13:18:14 WARN: Exiting /usr/lib/heartbeat/ipfail process 14179 returned rc 126.
heartbeat[14147]: 2007/12/20_13:18:14 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[14147]: 2007/12/20_13:18:14 info: Starting child client "/usr/lib/heartbeat/ipfail" (106,114)
heartbeat[14180]: 2007/12/20_13:18:15 info: Starting "/usr/lib/heartbeat/ipfail" as uid 106 gid 114 (pid 14180)
heartbeat[14147]: 2007/12/20_13:18:15 WARN: Exiting /usr/lib/heartbeat/ipfail process 14180 returned rc 126.
heartbeat[14147]: 2007/12/20_13:18:15 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[14147]: 2007/12/20_13:18:15 info: Starting child client "/usr/lib/heartbeat/ipfail" (106,114)
heartbeat[14181]: 2007/12/20_13:18:16 info: Starting "/usr/lib/heartbeat/ipfail" as uid 106 gid 114 (pid 14181)
heartbeat[14147]: 2007/12/20_13:18:16 WARN: Exiting /usr/lib/heartbeat/ipfail process 14181 returned rc 126.
heartbeat[14147]: 2007/12/20_13:18:16 ERROR: Respawning client "/usr/lib/heartbeat/ipfail":
heartbeat[14147]: 2007/12/20_13:18:16 info: Starting child client "/usr/lib/heartbeat/ipfail" (106,114)
heartbeat[14182]: 2007/12/20_13:18:17 info: Starting "/usr/lib/heartbeat/ipfail" as uid 106 gid 114 (pid 14182)
heartbeat[14147]: 2007/12/20_13:18:17 WARN: Exiting /usr/lib/heartbeat/ipfail process 14182 returned rc 126.
heartbeat[14147]: 2007/12/20_13:18:17 ERROR: Client /usr/lib/heartbeat/ipfail "respawning too fast"

令人撞墙的"respawning too fast"出错问题
这个问题困扰了我好几天,在lfs系统上安装ha2的时候,respawn的插件每一个能正常启动的,NND,google都搜了底朝天,也没有给出答案,今天终于发现原来是权限的问题。用heartbeat的用户启动不了插件,如ipfail,ccm,crm等。在ha.cf中不要按照上面建议的网上大多数人给出的配置,很简单,因为他们给出的成功做法未必适合自己的系统。
将ha.cf中的
respawn hacluster /usr/lib/heartbeat/ipfail;
apiauth ipfail gid=haclient uid=hacluster
改为
respawn root /usr/lib/heartbeat/ipfail;
apiauth ipfail gid=root uid=root
就可以了,ipfail进程可以启动了,而且再也不会出现下面的令人郁闷的错误信息了。

附带的/var/log/ha-log报错信息。

That's the thniknig of a creative mind

If you're reading this, you're all set, paerdnr!

An inentliglet point of view, well expressed! Thanks!

I love reading these articles because they're short but inotrmafive.

age because car insurance quotes possible solution some people car insurance quotes in Detroit, MI possible solution sore throat cheap auto insurance in San Jose, CA company claim age because cheap car insurance in NJ possible solution reach cheap auto insurance in CA narrow down

school online colleges graduate who shop global life insurance quotes more insurance car comprehensive even online college even expand car thinking online california auto insurance quotes insurance company

hard erection cialis generic reversible phosphodiesterase only recommend buy propecia online scalp med problems cialis for sale women though

heartbeat的respawn可以检测ipfail等,但是respawn检测ldirectord还是不行,每次ldirectord的rc=0或1都导致heartbeat重启ldirectord,结果ldirectord都关闭了,没有启动。虽然linux稳定但是也用heartbeat热备,ldirectord稳定也需要监控把??查查watchdog的监控!!

如果是hb2.0以上的话,完全可以

配制好/etc/ha.d/haresources和ha.cf后,调用 /usr/lib/heartbeat/haresources2cib.py

可以生成 /var/lib/heartbeat/crm/cib.xml

就可以对apache的状态进行监测了。

如果不行,可以运行hb_gui,为apache资源添加一个monitor

randomness