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.
lvs_maxconns_1.0.3.patch
Description: Binary data
|