2007-12-1
ldirectord
作者:花开 发布时间: 2007-12-1 | 版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处、作者信息及本声名。
本文链接: http://www.bsdmap.com/2007/12/01/ldirectord/
ldirectord ldirectord is a daemon to monitor and administer real servers in a LVS cluster of load balanced virtual servers. ldirectord typically used as a resource for heartbeat , but can also be run from the command line.
ldirectord是一个监控和管理LVS集群中RS(Real Server)的守保进程。ldirectord的典型应用是作为heartbeat的组件(资源、插件)(被heartbeat调用),但是ldirectord也可以从命令行运行。
A LVS cluster consists or one or more virtual services each of which may have zero or more real servers. The IP address of a virtual service is what end-users connect to and is typically advertised over DNS. When a connection is made to a virtual service, it is allocated a real server, and all packets for this connection are forwarded to this real server. A more detailed overview of LVS can be found here.
一个LVS集群由一个或多个“虚拟服务”(Virtual Service)组成,每个“虚拟服务”有零个或多个RS(Real Server)组成。
ldirectord has a configuration file which specifies the virtual services and their associated real servers. When ldirectord is initialised it creates the virtual services for the clutster.
ldirectord monitors the health of the real servers by periodically requesting a known URL and checking that the response contains an expected response. If a real server fails then the server is removed and will be reactivated once it comes back on line. If all the real servers are down then a fall-back server is inserted into the pool, which will made quiescent one of the real web servers comes back on line. Typically, the fall-back server is localhost. If an HTTP virtual service is being provided then it is useful to run an Apache HTTP server that returns a page indicating that the service is temporarily inaccessible.