]> git.ipfire.org Git - thirdparty/chrony.git/commit
clientlog: limit response rate
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 25 Nov 2015 12:23:52 +0000 (13:23 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 30 Nov 2015 16:50:55 +0000 (17:50 +0100)
commitb506594c2d964ae462be6688f82b103195837821
tree9edc9bc4ff028e81204ba9791323b0d69a7f6460
parent830135edea4c59c5b0a2f352bfd3309a1ca90893
clientlog: limit response rate

When the measured NTP or command request rate of a client exceeds
a threshold, reply only to a small fraction of the requests to reduce
the network traffic. Clients are allowed to send a burst of requests.
Try to detect broken clients which increase the request rate when not
getting replies and suppress the rate limiting for them.

Add ratelimit and cmdratelimit directives to configure the thresholds,
bursts and leak rates independently for NTP and command response rate
limiting. Both are disabled by default. Commands from localhost are
never limited.
clientlog.c
clientlog.h
cmdmon.c
conf.c
conf.h
ntp_core.c