zoukankan      html  css  js  c++  java
  • 当被监控的应用发生问题时,heartbeat会failover么?

    从maillist上别人给出的答案可以看出,如果不做额外的工作,比如,那么heartbeat只有在收不到heartbeat package的时候才会failover,换言之,如果heartbeat的daemon工作正常,但是被监控的服务已经down掉 了,heartbeat也是不会做双机切换的。

    需要作一些额外的工作,使得当被监控的服务出现问题时,heartbeat也会切换,如下:

    If you want to monitor the apache service with Heartbeat Release 1 then
    use Mon from Kernel.org to monitor your services.
    If you want to configure heartbeat in Release 2 style you could set up a
    monitoring through OCF scripts. For this you should read further on in
    the online docs of linux-ha.
    You are right. Heartbeat by itself only switches over to the other node,
    if it receives no more heartbeat signal of the other node.

    Hope that helps...

    Achim


    Eric Zhang wrote:
    > Hi, linux-ha:
    >
    > I am a newbie of Heartbeat. I have a question now: Will the
    > heartbeat failover from primary server to backup server when the
    > resource is unavailable? I mean, suppose such a situation: I run Apache
    > as my web server and it is the resource that hearbeat will monitor, when
    > the primary server was down, the backup server will not hear the
    > heartbeat so the failover begins. But if the heartbeat daemon of primary
    > server works right but my Apache doesn't work, what will happen? Will
    > this trigger a failover event?
    >
    > Actually, I don't know the details of heartbeat's resource manager.
    > Heartbeat's resource manager needs the resource scripts implement
    > "status, start, stop" commands, that means I can do a lot of jobs in
    > these three commands, I can do a lot of checking works in "status"
    > command, if my resource works abnormally, the resource script will
    > return words "bad" or some other things, whatever, just no "ok". If so,
    > will heartbeat begin failover when my resource script doesn't return
    > "ok" or, heartbeat only begin failover when the primary server doesn't
    > send heartbeat packages?
    >
    > I wish everyone can understand me. Thanks for any suggestions.
    >
    > Eric Zhang
    > 2006-11-02
    >
    >
    > _______________________________________________
    > Linux-HA mailing list
    > Linux-HA@lists.linux-ha.org
    > http://lists.linux-ha.org/mailman/listinfo/linux-ha
    > See also: http://linux-ha.org/ReportingProblems
    >
    >
  • 相关阅读:
    div 圆角
    CSS定义鼠标经过时鼠标图型样式
    如何判断浏览器类型然后让它读取指定的CSS
    如何分别指定ie6及ie7浏览器的css
    用CSS控制DIV居中失效的解决方法
    css如何控制文字多行显示,溢出截断后末尾出现省略...
    样式命名规则
    type="file" 谁用过这个属性给定义样式
    有利于SEO的DIV+CSS的命名规矩小结
    左右两个div高度自动一致,自适应高度
  • 原文地址:https://www.cnblogs.com/super119/p/2017836.html
Copyright © 2011-2022 走看看