[prev in list] [next in list] [prev in thread] [next in thread]
List: keepalived-devel
Subject: [Keepalived-devel] Misc_dynamic
From: "Johan Kooijman" <mail () johankooijman ! com>
Date: 2005-11-22 17:27:13
Message-ID: 000d01c5ef89$fa0d97c0$ee28c740$ () com
[Download RAW message or body]
Hi all,
The Facts:
Distro: Gentoo
Kernel: 2.6.14-gentoo-r2
Keepalived: Keepalived v1.1.11 (11/22,2005)
Config (virtual_server part only):
------------------
virtual_server 192.168.1.100 25 {
delay_loop 30
lb_algo wrr
lb_kind DR
nat_mask 255.255.255.0
persistence_timeout 50
protocol TCP
real_server 10.0.28.110 25 {
weight 1
inhibit_on_failure
MISC_CHECK {
misc_path /home/dignus/cl_node110.sh
misc_timeout 5
misc_dynamic
}
}
real_server 10.0.28.111 25 {
weight 1
inhibit_on_failure
TCP_CHECK {
connect_timeout 3
}
}
}
------------------
The contents of /home/dignus/cl_node110.sh are:
------------------
#!/bin/sh
exit 123;
------------------
I put in 123 to check if the misc_dynamic works. Before I start keepalived,
ipvsadm shows:
------------------
lb1 ~ # ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
------------------
After starting keepalived:
------------------
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.1.100:smtp wrr persistent 50
-> 10.0.28.111:smtp Route 1 0 0
-> 10.0.28.110:smtp Route 1 0 0
------------------
That looks good. After the first healthcheck, I find these entries in
/var/log/messages:
------------------
Nov 22 17:24:41 lb1 Keepalived_healthcheckers: Changing weight from 1 to 109
for active service [10.0.28.110:25] of VS [192.168.1.100:25]
Nov 22 17:24:41 lb1 Keepalived_healthcheckers: IPVS: No such destination
------------------
I noticed 2 things:
1. The weight is not according to the exit code.
2. The weight is not adjusted with ipvsadm
In my opinion this is not normal behavior for the keepalived. Am I right, or
am I overlooking something?
Kind regards,
Johan Kooijman
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Keepalived-devel mailing list
Keepalived-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic