LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

maxconns per real server

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: maxconns per real server
From: Benoit Gaussen <ben@xxxxxxxxxx>
Date: Tue, 02 Jul 2002 11:42:32 +0200
Hi,

I made a patch to limit the number of active connections per real server.
It simply quiesces real servers that reaches their maxconns in the ip_vs_*_schedule function of schedulers, the same way it does for real servers with weight=0.
Real servers with maxconns=0 have no limit.

There is a little problem : when connections are created very fast, the scheduler does not see all of them as active yet. So when connections enters active state, their number may be higher than maxconns.

Is that a feature that may interest LVS people, and that may be included in next LVS releases (in this form or other) ?

Ben. 

Attachment: lvs_maxconns_1.0.3.patch
Description: Binary data

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