]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] implement the slowstart parameter for servers
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Nov 2007 16:42:05 +0000 (17:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Nov 2007 16:42:05 +0000 (17:42 +0100)
commit9909fc13f1e1c7c443068070b48dc703c6aa61ff
tree1bde58723376a9d047792703d09953a9ac65f20f
parentdf36614b97fa1982029f6f24c77d8e6f8633030c
[MEDIUM] implement the slowstart parameter for servers

The new 'slowstart' parameter for a server accepts a value in
milliseconds which indicates after how long a server which has
just come back up will run at full speed. The speed grows
linearly from 0 to 100% during this time. The limitation applies
to two parameters :

  - maxconn: the number of connections accepted by the server
    will grow from 1 to 100% of the usual dynamic limit defined
    by (minconn,maxconn,fullconn).

  - weight: when the backend uses a dynamic weighted algorithm,
    the weight grows linearly from 1 to 100%. In this case, the
    weight is updated at every health-check. For this reason, it
    is important that the 'inter' parameter is smaller than the
    'slowstart', in order to maximize the number of steps.

The slowstart never applies when haproxy starts, otherwise it
would cause trouble to running servers. It only applies when
a server has been previously seen as failed.
include/types/server.h
src/cfgparse.c
src/checks.c
src/queue.c