cluster setup

Discussion in 'HOWTO-Related Questions' started by kaushalshriyan, May 25, 2009.

  1. kaushalshriyan

    kaushalshriyan New Member

    Hi,

    My setup are as below :-

    mthost04 -172.26.1.112 (primary node)
    mthost03 - 172.26.1.133 (standby node)
    mthost05 - 172.26.1.109(apache server)
    mthost02 - 172.26.1.174(apache server)

    I have heartbeat 2.99 and ldirectord running on mthost04 and mthost03. when i stop apache on either of mthost05/02 it works as expected. when i stop primary node (mthost04) the failover does not happen. means to say that mthost03 does not take over. I am using /var/lib/heartbeat/crm/cib.xml file for resources

    Please let me know if anyone needs my logs or my configurations.

    Thanks and Regards

    Kaushal
     
  2. kaushalshriyan

    kaushalshriyan New Member

    Hi Again,

    Checking in again for my query. :)

    Thanks,

    Kaushal
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Did you use a HowtoForge tutorial to set this up?
     
  4. kaushalshriyan

    kaushalshriyan New Member

    Hi,

    I have followed http://www.howtoforge.org/high_availability_loadbalanced_apache_cluster

    My setup are as below :-

    mthost02 - 172.26.1.127(primary node)
    mthost05 - 172.26.1.109(standby node)
    mthost04 -172.26.1.124 (apache node)
    mthost03 - 172.26.1.169 (apache node)
    VirtualIP - 172.26.1.10

    I have heartbeat and ldirectord running on mthost02 and mthost05. when i stop apache on either of mthost05/02 it works as expected. when i stop primary node (mthost02) the failover does not happen. means to say that mthost05 does not take over.

    ha.cf
    ###########################################################
    logfacility local0
    bcast eth0 # Linux
    mcast eth0 225.0.0.1 694 1 0
    auto_failback on
    node mthost02
    node mthost05
    respawn hacluster /usr/lib/heartbeat/ipfail
    apiauth ipfail gid=haclient uid=hacluster
    ###########################################################

    haresources
    ###########################################################################################################
    mthost02 ldirectord::ldirectord.cf LVSSyncDaemonSwap::master IPaddr2::172.26.1.10/24/eth0:1/172.26.255.255
    ###########################################################################################################

    ldirectord.cf
    ###########################################################
    checktimeout=10
    checkinterval=2
    autoreload=no
    logfile="local0"
    quiescent=no

    virtual=172.26.1.10:80
    real=172.26.1.124:80 gate
    real=172.26.1.169:80 gate
    fallback=127.0.0.1:80 gate
    service=http
    request="ldirector.html"
    receive="Test Page"
    scheduler=lc
    protocol=tcp
    ###########################################################

    when i stop heartbeat on mthost02 - 172.26.1.127(primary node), the machine freezes.there is no ERROR in daemon.log

    Please let me know if you need more information.

    Thanks and Regards

    Kaushal
     

Share This Page