[OpenSIPS-Users] Load Balancer Module & Failover.
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Mar 23 15:36:29 CET 2009
Hi Alan,
When you LB, the ordering between peers is something temporary - it
changes according to the load on the servers. So, here is a different
approach - instead of compiling a list in the first place and keep
checking one by one the elements from the list (as in dispatcher), with
LB you simply (in case of failure) do LB again to get the new less
loaded peer (at failure time, the order dictated by load is a new one).
To avoid hiting the same peer again, indeed, there is a need for
mechanism, but different than the one in Drouting/LCR. In LB, we can
use a mask to mark the already tried GWs and to avoid their selection again.
I will add this on the TODO list for the module.
Regards,
Bogdan
Alan Frisch wrote:
> Been playing with the Load Balancer module this weekend (thanks again
> to Bogdan for fixing the MySQL bug I posted a few weeks back) and was
> wondering how one might be able to do failover with this module?
>
> I'm only new to OpenSIPs but am trying to figure this one out... With
> the LCR module, it is quite easy to do a failover with the next_gw in
> the failure route. But not quite sure how to accomplish the same
> thing with the Load Balancer.
>
> If you try and load balance again in the failure route, aren't you
> just taking the chance of sending the packet to the down server again?
>
> Any help is appreciated.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list