horms at verge
Jun 14, 2011, 4:47 PM
Post #2 of 6
On Tue, Jun 14, 2011 at 01:06:49AM -0700, Robinson, Eric wrote:
> Is it possible to specify a maximum number of connections that LVS will
> direct to a realserver? Suppose I have two load-balanced servers, each
> capable of handling 150 users, and both are 75% full. If one crashes,
> the users will lose connection and try to log back in, and LVS will
> direct them to the surviving server. The only problem is that the
> surviving server can only handle maybe 50 more users. If all 300 users
> try to use it, the server was slow to a crawl. How do I specify a max
> limit of, say, 200 users? Better to have some users not be able to use
> the system than none of them.
ipvsadm allows each real-server to have an upper and lower connection
threshold, as described in the ipvsadm man page.
Unfortunately this isn't always exposed by higher-level tools
(to my shame I believe it is still missing from ipvsadm!).
Please read the documentation before posting - it's available at:
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users