Mailing List Archive

[lvs-users] Real-server routing-method switched on softfail
Hi all,

I've stumbled upon a worrying issue with my ldirectord instance. I'm using
"gate" for all my real-servers. However as they get a softfail and get
re-added they're added as "masq" which causes routing-failure when the
clients are trying to access the LVS-instance.

Config:

virtual=123.123.123.123:80
fallback=127.0.0.1:80
real=10.0.0.142:80 gate 10
real=10.0.0.134:80 gate 10
real=10.0.0.138:80 gate 10
real=10.0.0.144:80 gate 10
real=10.0.0.140:80 gate 10
real=10.0.0.136:80 gate 10
real=10.0.0.132:80 gate 10
service=http
scheduler=wrr
persistent=5
protocol=tcp
request="ld.html"
receive="enabled"
checktype=negotiate

The ldirectord.log says:

[Wed Jun 25 02:59:01 2014|ldirectord.cf|1594] Deleted real server:
10.0.0.144:80 (123.123.123.123:80)
[Wed Jun 25 02:59:12 2014|ldirectord.cf|1594] Resetting soft failure count:
10.0.0.144:80 (tcp:123.123.123.123:80)
[Wed Jun 25 02:59:12 2014|ldirectord.cf|1594] Added real server:
10.0.0.144:80 (123.123.123.123:80) (Weight set to 10)
[Thu Jun 26 10:22:35 2014|ldirectord.cf|17896] Restored real server:
10.0.0.144:80 (123.123.123.123:80) (Weight set to 10)

Under normal circumstances ipvs shows:

TCP 123.123.123.123:80 wrr persistent 5
-> 10.0.0.132:80 Route 10 36923 23
-> 10.0.0.134:80 Route 10 48156 60
-> 10.0.0.136:80 Route 10 52682 125
-> 10.0.0.138:80 Route 10 49012 65
-> 10.0.0.140:80 Route 10 47793 77
-> 10.0.0.142:80 Route 10 37234 129
-> 10.0.0.144:80 Route 10 38748 63

However upon restore:

TCP 123.123.123.123:80 wrr persistent 5
-> 10.0.0.132:80 Route 10 36923 23
-> 10.0.0.134:80 Route 10 48156 60
-> 10.0.0.136:80 Route 10 52682 125
-> 10.0.0.138:80 Route 10 49012 65
-> 10.0.0.140:80 Route 10 47793 77
-> 10.0.0.142:80 Route 10 37234 129
-> 10.0.0.144:80 Masq 10 38748 63


Please notice that this isn't limited to the particular real-server but
happens randomly across the cluster on soft-fail.

--

Jonathan Petersson
Sr. Systems Administrator
Emediate - a Cxense company
+46732001678
jonathan.petersson@cxense.com
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users