]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server: increase the default pool-purge-delay to 5 seconds
authorWilly Tarreau <w@1wt.eu>
Tue, 4 Jun 2019 12:06:31 +0000 (14:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 4 Jun 2019 12:06:31 +0000 (14:06 +0200)
The default used to be a very aggressive delay of 1 second before starting
to purge idle connections, but tests show that with bursty traffic it's a
bit short. Let's increase this to 5 seconds.

doc/configuration.txt
src/server.c

index 074a7fffe56fdd42c139172bb9a7d5ba6a92c817..d2cdf27497321b6932e6c949b51cfe36776c0529 100644 (file)
@@ -12311,7 +12311,7 @@ pool-max-conn <max>
 pool-purge-delay <delay>
   Sets the delay to start purging idle connections. Each <delay> interval, half
   of the idle connections are closed. 0 means we don't keep any idle connection.
-  The default is 1s.
+  The default is 5s.
 
 port <port>
   Using the "port" parameter, it becomes possible to use a different port to
index 541dc696fe6f87eec13508875ad03322f5654184..97cc5e09d1edba40b1820c4456d457cf84446916 100644 (file)
@@ -1811,7 +1811,7 @@ struct server *new_server(struct proxy *proxy)
        srv->agent.proxy = proxy;
        srv->xprt  = srv->check.xprt = srv->agent.xprt = xprt_get(XPRT_RAW);
 
-       srv->pool_purge_delay = 1000;
+       srv->pool_purge_delay = 5000;
        srv->max_idle_conns = -1;
        srv->max_reuse = -1;