[OpenSIPS-Users] Load balancer probe _mode=1 bug?

Bill W. opensips at aastral.net
Mon Nov 8 04:32:50 CET 2010


Hello Bogdan,

This is how I mark the destination down:

failure_route[1] {
        if (t_check_status("(408)|(5[0-9][0-9])")) {
                lb_disable();
                if (load_balance("1","sip","1")) {
                        t_on_failure("1");
                        t_relay();
                } else {
                        t_reply("503", "Service Unavailable");
                }
        }
}


opensipsctl fifo lb_list shows:  enabled=no auto-re=on

I do not see any probes from opensips when  probe_mode in the database
is set to "1" which should probe the destination when it's marked down.
 When probe_mode is set to "2", and opensips probes continuously,
it works fine.

The docs say: "(1) - probing only when the destination is in disabled
mode (disabling via MI command will competely stop the probing also).
The destination will be automatically re-enabled when the probing will
succeed next time;"

So when I disable via lb_disable(), it is acting like I did it from the
MI, and disabling the probing too.

Thoughts?

Thanks,
Bill

On 8/1/10 1:14 PM, Bogdan-Andrei Iancu wrote:
> Hi Bill,
> 
> How do you mark down the destination (MI ?) and what state are you setting ?
> 
> Also, after marking it down, do you see any new pings being sent to that 
> destination?
> 
> Something was changed during rev 6653:
>     http://opensips.svn.sourceforge.net/opensips/?rev=6653&view=rev
> 
> But the new code seams ok for me - the LB_DST_STAT_NOEN_FLAG flag is set 
> when disabling the destination via MI and with this flag set, no more 
> pings are sent.
> 
> Regards,
> Bogdan
> 
> Bill W wrote:
>> Hello Bogdan,
>>
>> I'm experiencing the same problem as I did before, with the load 
>> balancer not re-enabling a device marked down.
>>
>> If I go into the database and set probe_mode = 2, it re-enables the device.
>>
>> I'm currently running opensips 1.6.2-tls (x86_64/linux)
>>
>> Did the patch get reverted?
>>
>> Thanks!
>> Bill
>>
>> Bogdan-Andrei Iancu wrote:
>>   
>>> Super! I uploaded the fix on SVN.
>>>
>>> Thanks and regards,
>>> Bogdan
>>>
>>> Bill W wrote:
>>>     
>>>> Hey Bogdan,
>>>>
>>>> It looks like that fixed it.  Thanks so much!
>>>>
>>>> Bill
>>>>
>>>>
>>>> Bogdan-Andrei Iancu wrote:
>>>>   
>>>>       
>>>>> Hi Bill,
>>>>>
>>>>> Could you please try the attached patch? It seams that there was an 
>>>>> issue with the the probing values in the code. Let me know if the patch 
>>>>> does solves your problem and I will upload it on SVN.
>>>>>
>>>>> Regards,
>>>>> Bogdan
>>>>>
>>>>>     
>>>>>         
>>>> _______________________________________________
>>>> Users mailing list
>>>> 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
>>
>>   
> 
> 



More information about the Users mailing list