Joe, please take a look at this. It explains why I am asking this
question.
On my load balancer, you can see that I have two RS listening on port
3001, and both are up..
[root@lb1 ]# ipvsadm|grep 3001
TCP extrovert.mycharts.md:3001 lblc persistent 360
-> 192.168.10.62:3001 Masq 1 0 0
-> 192.168.10.61:3001 Masq 1 0 0
[root@lb1 scripts]#
Now I'll stop the service listening on the server at 192.168.10.61...
[root@appftp1 ]# service tomcat5_001 stop
Stopping tomcat: Using CATALINA_BASE: /alley/site001/tomcat5
Using CATALINA_HOME: /alley/site001/tomcat5
Using CATALINA_TMPDIR: /alley/site001/tomcat5/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.2_09
Back on the load balancer, the down server is detected immediately...
[root@lb1 /]# ipvsadm|grep 3001
TCP extrovert.mycharts.md:3001 lblc persistent 360
-> 192.168.10.62:3001 Masq 1 0 0
-> 192.168.10.61:3001 Masq 0 0 0
[root@lb1 /]#
Now back on the RS, I'll start the service back up...
[root@appftp1 /]# service tomcat5_001 start|grep "startup in"
INFO: Server startup in 4023 ms
[root@appftp1 /]#
The LB instantly detects the RS is back up...
[root@lb1 /]# ipvsadm|grep 3001
TCP extrovert.mycharts.md:3001 lblc persistent 360
-> 192.168.10.62:3001 Masq 1 0 0
-> 192.168.10.61:3001 Masq 1 0 0
[root@lb1 /]#
So we know the healthchecks are working, right?
But now look at this. On the LB, I'll change the weight manually, check
it, wait 60 seconds, and check it again...
[root@lb1 /]# ipvsadm -e -t 192.168.5.100:3001 -r 192.168.10.61 -w 0 -m
[root@lb1 /]# ipvsadm|grep 3001
TCP extrovert.mycharts.md:3001 lblc persistent 360
-> 192.168.10.62:3001 Masq 1 0 0
-> 192.168.10.61:3001 Masq 0 0 0
[root@lb1 /]# sleep 60
[root@lb1 /]# ipvsadm|grep 3001
TCP extrovert.mycharts.md:3001 lblc persistent 360
-> 192.168.10.62:3001 Masq 1 0 0
-> 192.168.10.61:3001 Masq 0 0 0
[root@lb1 /]#
Still down after a full minute! And it will *stay* down until I run
ipvsadm with -w 1
This is what makes me wonder why I seem to get different behavior from
the command line than from the healthchecks. I'm sure it must be
something simple that I am overlooking.
--
Eric Robinson
Director of Information Technology
Physician Select Management, LLC
775.885.2211 x 111
-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Robinson,
Eric
Sent: Thursday, December 04, 2008 8:28 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: [lvs-users] How to Tell If an RS Is Really Up
>you're asking if you can tell whether a command like `date` was run by
>a script or from the command line.
Yeah, I figured that out belatedly. I was just explaining the process
that lead me there.
So now I need to figure out why I can set my servers' weights to 0 and
they don't bounce back to 1 after the next healthcheck. Conversely they
do automatically get set from 1 to 0 if the service running on the RS
goes down.
--
Eric Robinson
Disclaimer - December 4, 2008
This email and any files transmitted with it are confidential and
intended solely for LinuxVirtualServer.org users mailing list.. If you
are not the named addressee you should not disseminate, distribute, copy
or alter this email. Any views or opinions presented in this email are
solely those of the author and might not represent those of . Warning:
Although has taken reasonable precautions to ensure no viruses are
present in this email, the company cannot accept responsibility for any
loss or damage arising from the use of this email or attachments.
This disclaimer was added by Policy Patrol: http://www.policypatrol.com/
_______________________________________________
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
_______________________________________________
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
|