diff --git a/doc/configuration.txt b/doc/configuration.txt index bfc8b9030..9bc7d7150 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -1476,6 +1476,10 @@ busy-polling prefixing it with the "no" keyword. It is ignored by the "select" and "poll" pollers. + This option is automatically disabled on old processes in the context of + seamless reload; it avoids too much cpu conflicts when multiple processes + stay around for some time waiting for the end of their current connections. + max-spread-checks By default, haproxy tries to spread the start of health checks across the smallest health check interval of all the servers in a farm. The principle is diff --git a/src/proxy.c b/src/proxy.c index a5570dafa..9448d1a3e 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1116,6 +1116,8 @@ void soft_stop(void) struct task *task; stopping = 1; + /* disable busy polling to avoid cpu eating for the new process */ + global.tune.options &= ~GTUNE_BUSY_POLLING; if (tick_isset(global.hard_stop_after)) { task = task_new(MAX_THREADS_MASK); if (task) {