[lvs-users] Setting Max Connections

Simon Horman horms at verge.net.au
Wed Jun 15 00:47:15 BST 2011


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!).




More information about the lvs-users mailing list