LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] ldirectord emailalert: Inaccessible real server

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] ldirectord emailalert: Inaccessible real server
From: "Aleksey Chudov" <aleksey.chudov@xxxxxxxxx>
Date: Sun, 7 Feb 2010 22:26:46 +0200
Hello!

 

I have configured LVS Cluster with 2 LVS nodes, 4 Real Servers running
Tomcat and nginx fallback server on LVS nodes. All works as expected
except ldirectord fallback server check. If I turn off all real servers
ldirectord add fallback server to LVS table and remove it after real
servers comes back. But ldirectord send email alerts about inaccessible
real server on 127.0.01. I check fallback server on LVS and it is
accessible from web browser. It seems like ldirectord does not remove
fallback server from some "servers list". I am not perl programmer, so
it is hard to me to patch ldirectord script. Workaround is manually set
emailalertfreq=0 but I think it is not the right way.

 

ldirectord.log:

[Mon Feb  1 16:05:08 2010|ldirectord.cf|11456] Deleted real server:
192.168.1.2:80 (XXX.XXX.XXX.XXX:80)

[Mon Feb  1 16:05:08 2010|ldirectord.cf|11456] emailalert: Deleted real
server: 192.168.1.2:80 (XXX.XXX.XXX.XXX:80)

[Mon Feb  1 16:05:09 2010|ldirectord.cf|11456] Added fallback server:
127.0.0.1:80 (XXX.XXX.XXX.XXX:80) (Weight set to 1)

[Mon Feb  1 16:05:09 2010|ldirectord.cf|11456] emailalert: Added
fallback server: 127.0.0.1:80 (XXX.XXX.XXX.XXX:80) (Weight set to 1)


[Mon Feb  1 16:05:11 2010|ldirectord.cf|11456] Added real server:
192.168.1.2:80 (XXX.XXX.XXX.XXX:80) (Weight set to 100)

[Mon Feb  1 16:05:11 2010|ldirectord.cf|11456] emailalert: Added real
server: 192.168.1.2:80 (XXX.XXX.XXX.XXX:80) (Weight set to 100)

[Mon Feb  1 16:05:11 2010|ldirectord.cf|11456] Deleted fallback server:
127.0.0.1:80 (XXX.XXX.XXX.XXX:80)

[Mon Feb  1 16:05:11 2010|ldirectord.cf|11456] emailalert: Deleted
fallback server: 127.0.0.1:80 (XXX.XXX.XXX.XXX:80)

[Mon Feb  1 17:05:11 2010|ldirectord.cf|11456] emailalert: Inaccessible
real server: 127.0.0.1:80 (XXX.XXX.XXX.XXX:80)

[Mon Feb  1 18:05:11 2010|ldirectord.cf|11456] emailalert: Inaccessible
real server: 127.0.0.1:80 (XXX.XXX.XXX.XXX:80)

[Mon Feb  1 19:05:11 2010|ldirectord.cf|11456] emailalert: Inaccessible
real server: 127.0.0.1:80 (XXX.XXX.XXX.XXX:80)

 

 

Regards, Aleksey.

 

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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

<Prev in Thread] Current Thread [Next in Thread>