Re: [lvs-users] Setting Max Connections

To: "Robinson, Eric" <eric.robinson@xxxxxxxxx>
Subject: Re: [lvs-users] Setting Max Connections
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Wed, 15 Jun 2011 08:47:15 +0900
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.

Hi Eric,

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: mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to

<Prev in Thread] Current Thread [Next in Thread>