RE: Disabling a Real server

[email protected] Tue, 19 Jan 2010 12:41:07 -0500
Newsgroups gmane.linux.redhat.piranha
Message-ID <50168EC934B8D64AA8D8DD37F840F3DE055B9019CC@EVS2CCR.its.caregroup.org>
Hopefully, I am understanding your use-case and question ...

If the service goes "offline", the cooresponding pulse -> lvsd -> nanny pro=
cess is supposed to detect event, and then remove the real server from the =
vip:port pool.  See syslog for that event messages.

If you want to do that manually, i.e., a planned quiesce of the service, ju=
st set the weight factor of the real server to zero.  Monitor its current a=
ctive clients until it reaches zero, because no new connections will be all=
owed into that server while it is set to zero.  Then, shutdown the service.

To drain clients, issue a command like:

ipvsadm -e -t eben:8000 -r web02:8000 -g -w 0

... where eben is the virtual host name and web02 is the real server name.

Do the reverse when you are ready to bring it back into the pool: server up=
, service up, and set its weight factor >0.

-----Original Message-----
From: [email protected] [mailto:[email protected]=
om] On Behalf Of Diego Bello
Sent: Tuesday, January 19, 2010 7:52 AM
To: [email protected]
Subject: Disabling a Real server

Hi people,

I have a LVS cluster using CentOS 5.3 and I need, from time to time, take o=
ne of the real servers out for maintenance and then take it in again. How c=
an I "disable" a real server from the cluster so it is no longer monitored =
until It is back again?.

I thought on shutting down the service, Postgresql in this case, but the mo=
nitoring scripts I have send an email alert whenever a Real Server is not a=
vailable, and I don't want to be receiving tons of emails whenever a real s=
erver is being updated.

The only way I can think about is to modify the router configuration file (=
lvs.cf) and reload pulse, but I'm not totally sure that's the most elegant =
choice. I need it to be done automatically using scripts, but I can't find =
any hint in man pages of lvsd, nanny or ipvsadm.

Thanks.

--
Diego Bello Carre=F1o

_______________________________________________
Piranha-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/piranha-list