mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-08 01:33:44 +02:00
The MAX_DELAY_MS which is set an upper limit to the poll wait time and force a wakeup this often used to be set to 1 second in order to easily spot and correct time drifts. This was added 12 years ago at an era where virtual machines were starting to become common in server environments while not working particularly well. Nowadays, such issues are not as common anymore, however forcing 64 threads to wake up every single second starts to make the process visible on otherwise idle systems. Let's increase this wakeup interval to one minute. In the worst case it will make idle threads wake every second, which remains low. If this is not sufficient anymore on some systems, another approach would consist in implementing a deep-sleep mode which only triggers after a while and which is always disabled if any time drift is observed.