[lvs-users] ldirectord feature patch - add abilility to signal system maintenance

Geoff Harrison geoff at thehive.com
Fri May 15 14:19:05 BST 2009


we actually use the existing infrastructure for this.  service checks  
go to a script that returns OK if the system is available for new  
connections, or doesn't if it is down

for our mysql checks we do something like 'select * from  
ldirectord_pool where enabled=1' and truncate those tables when we're  
taking a box out for maint.

however - it would be nice if we could do something like continue  
routing old connections...  but that would require something in terms  
of ipvs level support I'm thinking


Geoff Harrison
Chief Architect
The Hive
(617) 301-6200


On May 14, 2009, at 5:35 PM, Sean Millichamp wrote:

> Patch 4/4
>
> This patch adds the ability to notify ldirectord that a system  
> should be
> forced down for maintenance (or other reasons) even though the service
> check passes.
>
> This patch introduces a new option "maintenancedir" which allows the
> administrator to specify a directory in which ldirectord will check
> for the existence of files indicating if the realserver should be
> forcibly set down (irrespective of and bypassing the normal service
> check).
>
> If a site is using a management tool such as cfengine or Puppet that
> watches and manages the ldirectord configuration file it may not be
> possible or practical to modify the configuration file to remove a
> realserver or weight it to 0 during maintenance.  This mechanism
> provides a quick and simple way to signal ldirectord that a real  
> server
> should be set down without having to modify any configuration files.
>
> Thanks,
> Sean
> <ldirectord- 
> maintenancedir.patch>_______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org
> Send requests to lvs-users-request at LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users





More information about the lvs-users mailing list