Re: Disabling a Real server
Diego Bello <[email protected]> Tue, 19 Jan 2010 14:56:20 -0300
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jan 19, 2010 at 2:41 PM, <[email protected]> wrote: > Hopefully, I am understanding your use-case and question ... > > If the service goes "offline", the cooresponding pulse -> lvsd -> nanny p= rocess is supposed to detect event, and then remove the real server from th= e vip:port pool. =A0See syslog for that event messages. > > If you want to do that manually, i.e., a planned quiesce of the service, = just set the weight factor of the real server to zero. =A0Monitor its curre= nt active clients until it reaches zero, because no new connections will be= allowed into that server while it is set to zero. =A0Then, shutdown the se= rvice. > > 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. > This is what I do, but when one server has weight =3D 0, the monitoring script keeps working on it. It is still part of the pool. This monitoring script is used, in this case, to alert when a machine is down, so even when I set its weight to 0 and shutdown postgres, alerts keep telling me that the machine is down. > -----Original Message----- > From: [email protected] [mailto:piranha-list-bounces@redhat= .com] 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= one of the real servers out for maintenance and then take it in again. How= can I "disable" a real server from the cluster so it is no longer monitore= d until It is back again?. > > I thought on shutting down the service, Postgresql in this case, but the = monitoring scripts I have send an email alert whenever a Real Server is not= available, and I don't want to be receiving tons of emails whenever a real= server 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 elegan= t choice. I need it to be done automatically using scripts, but I can't fin= d 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 > > > > _______________________________________________ > Piranha-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/piranha-list > -- = Diego Bello Carre=F1o