[OpenSIPS-Users] lb_reload
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Mar 10 12:52:51 CET 2010
Hi Dimitri,
Ok, so you do lb_reload just because you need to add some more
destinations in the balancer. You do not change the properties of the
already existing destination - this was what I was interested in.
Let me run some checks to see what about. BTW, what opensips version are
you using ?
Regards,
Bogdan
Dmitri G. wrote:
> I'm changing the resource frequently, btw these are asterisk boxes
> with agents, an inbound call center.
> Every morning they call me and tell "dimitri today we have 200 agent
> for xx.xx.xx.xx, and we have 150 for yy.yy.yy.yy".
> So I run a lb_resize to change the resource figure (the number of
> available agents).
> There is no problem with this and I never change the name of the
> resource, just the figure. I can resize it without any problems.
>
> But in case if they call me to add a new asterisk ip with resources,
> then I need to insert it to a DB, to the load_balancer table.
> But how to enable to use the new gw other than using lb_reload?
>
> If I run the lb_reload, and there was concurrent calls to the asterisk
> boxes (so agent=200, and agent=150), the load to each destination will
> be zero (load=0). Buit there are still active calls to the
> destinations so if I have 150 calls to one, and if there will be a new
> call to the destination, after a lb_reload I see load=1, where in
> reality there was 151 calls.
>
> See my problem?
>
> Thanks,
>
> Dimitri.
>
> 2010/3/9 Bogdan-Andrei Iancu către OpenSIPS arată detaliile 16:26
> (acum 27 minute)
>
> Ok, I got that :)
>
> my question was - what you change in DB (before doing the reload)? do
> you change the definition of the already existing destinations (like
> resources) ?
>
> Regards,
> Bogdan
>
> Dmitri G. wrote:
> > Hi Bogdan,
> >
> > I mean it's setting the load= figures to zero for all gws in the
> > load_balancer table.
> > So if I have 2 gws with load=136 and load=227, after running
> > opensipsctl fifo lb_reload, then load will be zero (load=0).
> >
> > Dimitri
> >
> > 2010/3/9 Bogdan-Andrei Iancu către OpenSIPS arată detaliile 15:57
> > (acum 18 minute)
> >
> > Hi Dimitri,
> >
> > reloading the data should not delete the dialog profiles, unless you
> > change the name of the resources (in the destination definition).
> > Is this your case?
> >
> > Regards,
> > Bogdan
> >
> > Dmitri G. wrote:
> > > Hi,
> > >
> > > Is there a way to keep the number of the dialogs after running the
> > > lb_reload command through openipsctl?
> > > When I add a new gateway to the mysql able and execute lb_reload
> > > command, the number of the dialogs are resets to zero in every
> > > gateways (I have checked it with lb_list, load counters are zero)
> > >
> > > Thanks,
> > > Dimitri
> > >
> >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> <mailto:Users at lists.opensips.org <mailto:Users at lists.opensips.org>>
> > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > >
> >
> >
> > --
> > Bogdan-Andrei Iancu
> > www.voice-system.ro <http://www.voice-system.ro>
> <http://www.voice-system.ro>
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> <mailto:Users at lists.opensips.org <mailto:Users at lists.opensips.org>>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro <http://www.voice-system.ro>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list