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
Bill W. wrote:
Hi everyone,
I'm using opensips 1.6.0-tls with the load balancer module and it
appears as though probe_mode 1 isn't working.
I set probe_mode 1 in the database, reload, and then stop the service
being monitored.
I then make a call so my failure_route script does an lb_disable() on
the failed host.
After that no probing occurs (verified with tcpdump), even though
lb_list reports "enabled=no auto-re=on".
If I set probe_mode 2 in the database, then opensips start probing,
detects when the service has started again, and re-enables it.
Here are my settings
modparam("load_balancer", "probing_interval", 30)
modparam("load_balancer", "probing_method", "OPTIONS")
modparam("load_balancer", "probing_from","sip:[email protected]")
Thoughts?
Thanks in advance,
Bill
version: opensips 1.6.0-tls (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, USE_SCTP, DISABLE_NAGLE,
USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: unknown
@(#) $Id: main.c 6169 2009-09-22 12:48:37Z bogdan_iancu $
main.c compiled on 13:43:26 Dec 8 2009 with gcc 4.4
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Bogdan-Andrei Iancu
www.voice-system.ro
Index: modules/load_balancer/lb_db.c
===================================================================
--- modules/load_balancer/lb_db.c (revision 6486)
+++ modules/load_balancer/lb_db.c (working copy)
@@ -177,7 +177,7 @@
/* PROBING_MODE column */
check_val( ROW_VALUES(row)+4, DB_INT, 1, 0);
pmode = VAL_INT(ROW_VALUES(row)+4);
- if (pmode==1) {
+ if (pmode==0) {
flags |= LB_DST_PING_DSBL_FLAG;
} else if (pmode>=2) {
flags |= LB_DST_PING_PERM_FLAG;
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users