zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] jhuan31 opened a new pull request #1051: Add server side large request throttling
Date Sun, 11 Aug 2019 05:48:35 GMT
jhuan31 opened a new pull request #1051: Add server side large request throttling
URL: https://github.com/apache/zookeeper/pull/1051
 
 
   With this change, a ZooKeeper server has two new settings:
   zookeeper.largeRequestThreshold
   zookeeper.largeRequestMaxBytes
   
   Any request that is larger than largeRequestThreshold is considered a large request, and
will only be allowed if the number of bytes associated with inflight large requests is currently
below the largeRequestMaxBytes limit.
   
   This check is performed in the connection layer based on the length header of a request,
before allocating the necessary byte buffer and reading data off the TCP socket. This ensures
the limit is enforced before allocating data that's ultimately just going to discarded.
   
   Whenever a large request is allowed, its size is added to an atomic counter which represents
the number of large request bytes inflight and this counter is the one tested against the
max. Whenever a large request is completed or dropped, the counter is decremented as necessary.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message