ultramonkey installation issues

Discussion in 'Server Operation' started by birwin, Dec 10, 2010.

  1. birwin

    birwin New Member

    I followed the excellent guide for installing ultramonkey at: http://www.howtoforge.com/set-up-a-...server-for-a-small-company-using-debian-lenny

    I am having an issue getting my ultramonkey High Availability and load balancing server to redirect traffic to a real server (both are on the same network)
    Clients get a page timeout on the web browser.

    The server will redirect traffic to a web server installed on the lo interface (127.0.0.1) of the Linux Director as a real server if I change the
    lbdirectord.cf file to use the 127.0.0.1 address as the real server.

    The server does not direct traffic to the "fallback" server, so it appears the request and receive are working.

    My Virtual IP Address is 10.49.220.8, The real server hosting the web site is 10.49.223.155

    I believe I have enabled Packet Forwarding. I uncommented the line "net.ipv4.ip_forward=1" in the /etc/sysctl.conf file and ran /sbin/sysctl -p

    The Linux Director Server is Debian and the Real Server is an Apache web server hosted on a Windows 7 machine. The Apache web server is configured to respond to requests on all addresses port 80 ("Listen 80" in httpd.conf).

    Any help would be welcome...

    My files:

    /etc/ha.d/lbdirectord.cf

    Code:
    checktimeout=10
    checkinterval=2
    autoreload=no
    logfile="local0"
    quiescent=no
    
    virtual=10.49.220.8:80
        fallback=127.0.0.1:80 gate
        real=10.49.223.155:80 masq 1
        request="lbdirectord.html"
        receive="alive"
        scheduler-rr
        protocol=tcp
        checktype=negotiate

    (I verified the html file used for verifying the server is up does return the text "alive")

    /etc/ha.d/haresources

    Code:
    ClusterTest3 \
        ldirectord::ldirectord.cf \
        LVSSyncDaemonSwap::master \
        IPaddr2::10.49.220.8/22/eth0/10.49.223.255


    Output from Commands:

    /sbin/ipvsadm -L -n

    Code:
    TCP 10.49.220.8:80 rr -> 10.49.223.155:80 Masq 1 0 0

    /etc/ha.d/resource.d/LVSSyncDaemonSwap master status

    Code:
    master running

    ip addr sh eth0

    Code:
    inet 10.49.222.144/22 brd 10.49.223.255 scope global eth0
    inet 10.49.220.8/22 brd 10.49.223.255 scope global secondary eth0
     

Share This Page