We do this with relative success using DNS load balancing. Our two boxes are randomly load balanced, not precisely half & half. We then use a script that fires off "test" SIP messages at the boxes every 60 seconds, and run a second script that removes the entry from our DNS server should one of the boxes not respond (likewise, the script re-inserts them when they start responding again.)
It's not totally optimal, but it works for us. Frankly the biggest problem was sharing variables across the boxes; we ended up with the need to track concurrent number of calls on various domains, and because those calls could originate/terminate via either box, we ended up using a complicated database script inside Opensips to manage "cumulative" variables. Cheers, Jeff From: [email protected] [mailto:[email protected]] On Behalf Of Josip Djuricic Sent: Tuesday, October 13, 2009 8:46 AM To: [email protected] Subject: [OpenSIPS-Users] Statefull Load balancing Importance: High Hi there, Could anyone point me on how to do load balancing with opensips with transaction sharing between 2 of these servers. I know there was few threads about this and they usually end with UCARP or heartbeat, but I would want to load balance between 2 opensips server with them sharing transactions between themselves if that is possible? Best regards, Josip
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
