[OpenSIPS-Users] loadbalancer module and adding servers to the load balancing pool

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Dec 2 13:16:09 CET 2010


Hi Bobby,

You can try to do something like:
    1) do load_balance() to get the less loaded destination
    2) use ratelimit to check the cps for it
    3) if too many CPS -> do again load_balance() - this will get the 
next less loaded destination, skipping the one already used.

Regards,
Bogdan

Bobby Smith wrote:
> I feel there can be something done using the ratelimit module here:   
> http://www.opensips.org/html/docs/modules/1.6.x/ratelimit.html, but I 
> don't see that happening without a way to do a "select next" with the 
> loadbalancer module.  Currently, the implementation calculates load 
> based on resources available, but is there a way to forcibly skip a 
> resource and pick the "next best" resource, like a lb_do_next() function?
>
> Thanks,
>
> Bobby Smith
>
> On Sat, Nov 27, 2010 at 3:25 PM, Bobby Smith <bobby.smith at gmail.com 
> <mailto:bobby.smith at gmail.com>> wrote:
>
>     Greetings,
>
>     Currently with our load balancing implementation, we're
>     encountering a problem where when a server is added to the active
>     pool during load, all calls immediately hit that server until all
>     the resources are reached.  While in a perfect situation
>     (restarting call load) this is not a problem, in a situation where
>     we're under call load with many servers and need to dynamically
>     add more servers, this causes a problem as the resource added
>     can't handle the sudden burst of calls per second.  This is also
>     causing a problem when a resource is removed from the pool for
>     troubleshooting purposes and needs to be added back without a
>     restart of opensips.
>
>     Is there any way from a scripting perspective to throttle how this
>     works?  If not, I'd like to request it as a feature (something
>     like maximum CPS per resource or something).  Also, resetting the
>     load balancing metrics is not an option; we need to be able to
>     keep an accurate track of resources load balanced to each server.
>
>     Thanks,
>
>     BobbyS
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list