LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS 4 SIP setup help needed

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] LVS 4 SIP setup help needed
From: Ashi Aber <ariaber@xxxxxxxxxxx>
Date: Sun, 16 Aug 2009 15:00:32 +0000
Hi,
Below is the setup I'm testing.
Need to balance SIP from a single source to two clustered servers.
Both servers listen on SIP ports 5060 and 5065.
Each server serves as master for its VIP and backup for the other servers VIP.
The IP VIP stuff works fine.
The SIP traffic doesn’t balance evenly and doesn’t failback (when I fail one of 
the ports, the traffic is redirected to the other server, but, when I restore 
the service the traffic doesn’t move back).

Not sure what are the best settings for this layout....

                        ________
                       |        |
                       | client |
                       |________|
                    CIP=192.168.0.92
                           |
             CIP->VIP |    |   ^  
                      v    |   | VIP->CIP
                           |
         
          ---------------------------------------
          |                                     |
          |                                     |           
   RIP1=192.168.0.125             RIP2=192.168.0.126 
   VIP1=192.168.0.127             VIP2=192.168.0.128
    _____________                    _____________   
   |             |                  |             |   
   | realserver  |                  | realserver  |
   | sip 5060    |                  | sip 5060    |
   | sip 5065    |                  | sip 5065    |   
   |_____________|                  |_____________|   


# more ha.cf 
logfacility   local0
keepalive     100ms
deadtime      800ms
warntime      600ms
initdead      50
udpport       694
mcast eth0 225.0.0.1 694 1 0
auto_failback on
node          n770
node          n771
ping          192.168.0.125    192.168.0.126    192.168.0.254
respawn hacluster /usr/lib/heartbeat/ipfail
crm off

# more ldirectord*
::::::::::::::
ldirectord1.cf
::::::::::::::
checktimeout=15
checkinterval=5
autoreload=no
logfile="/var/log/ldirectord1.log"
quiescent=no
virtual=192.168.0.128:5060
    fallback=127.0.0.1:5060
    real=192.168.0.125:5060 gate 2
    real=192.168.0.126:5060 gate 3
    service=sip
    login="imscf@xxxxxxxxx"
    receive="SIP Request:200  OK"
    scheduler=sh
    persistent=1
    protocol=udp
    checktype=negotiate

virtual=192.168.0.128:5065
    fallback=127.0.0.1:5065
    real=192.168.0.125:5065 gate 2
    real=192.168.0.126:5065 gate 3
    service=sip
    login="imscf@xxxxxxxxx"
    receive="SIP Request:200  OK"
    scheduler=sh
    persistent=1
    protocol=udp
    checktype=negotiate
::::::::::::::
ldirectord.cf
::::::::::::::
checktimeout=15
checkinterval=5
autoreload=no
logfile="/var/log/ldirectord.log"
quiescent=no
virtual=192.168.0.127:5060
    fallback=127.0.0.1:5060
    real=192.168.0.125:5060 gate 3
    real=192.168.0.126:5060 gate 2
    service=sip
    login="imscf@xxxxxxxxx"
    receive="SIP Request:200  OK"
    scheduler=sh
    persistent=1
    protocol=udp
    checktype=negotiate

virtual=192.168.0.127:5065
    fallback=127.0.0.1:5065
    real=192.168.0.125:5065 gate 3
    real=192.168.0.126:5065 gate 2
    service=sip
    login="imscf@xxxxxxxxx"
    receive="SIP Request:200  OK"
    scheduler=sh
    persistent=1
    protocol=udp
    checktype=negotiate

# more haresources
n770       \
        ldirectord::ldirectord.cf \
        IPaddr2::192.168.0.127/24/eth0/192.168.0.255
n771       \
        ldirectord::ldirectord1.cf \
        IPaddr2::192.168.0.128/24/eth0/192.168.0.255





_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>