[Asterisk-Dev] Load Balancing

Steven Critchfield critch at basesys.com
Tue May 25 07:28:33 MST 2004


On Tue, 2004-05-25 at 09:07, GIBERT Frédéric wrote:
> Hello,
> 
> I would like to know if someone can help me in order to manage load
> balancing for 10 asterisk box.
> 
> I have read that we can do it with a module like SER in SIP.
> 
> Is it also possible to do load balancing with IAX protocol?
> 
> Here is the schema I want to do:
> 
> AstBox (Public IP@)  --- Internet ---- Load Balancer ----- 10 AstBoxs
> (Private IP@)

If you are taking calls from the internet, do you think you are going to
making enough calls to need 10 boxes, or are you planning on using
machines worthy of the dumpster? 

You can load balance with any number methods and protocols. You could do
round-robin probably easiest. Store a pointer to one of the machines and
each call reads the pointer and then increments it, considers need for
wraparound and then stores the result before doing it's dial. Yes there
is a potential for a race condition, but as call processing should be
consistent, it is unlikely to cause more than a small blip on one
machines load as it gets a couple calls at the same time.

Most other plans either would require you actually look up in progress
calls and route to lowest usage or poll the remote machine about it's
load and then decide.  
-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-dev mailing list