[MEDIUM] limit the number of events returned by *poll*
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Jun 2007 15:16:49 +0000 (17:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jun 2007 15:16:49 +0000 (17:16 +0200)
commit1db37710dc9c5ca1b57abfe3dd022a98dec917ad
tree58bf4b05dfac7f340e2ed0158f5c00092e609486
parentfb8983f21b69f3341fc5a4076ab3c98887d16463
[MEDIUM] limit the number of events returned by *poll*

By default, epoll/kqueue used to return as many events as possible.
This could sometimes cause huge latencies (latencies of up to 400 ms
have been observed with many thousands of fds at once). Limiting the
number of events returned also reduces the latency by avoiding too
many blind processing. The value is set to 200 by default and can be
changed in the global section using the tune.maxpollevents parameter.
doc/haproxy-en.txt
doc/haproxy-fr.txt
include/common/defaults.h
include/types/global.h
src/cfgparse.c
src/ev_epoll.c
src/ev_kqueue.c
src/ev_sepoll.c
src/haproxy.c