From notifications-return-1248-archive-asf-public=cust-asf.ponee.io@zookeeper.apache.org Sun Aug 11 05:48:37 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id EE5B0180670 for ; Sun, 11 Aug 2019 07:48:36 +0200 (CEST) Received: (qmail 68163 invoked by uid 500); 11 Aug 2019 05:48:36 -0000 Mailing-List: contact notifications-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list notifications@zookeeper.apache.org Received: (qmail 68152 invoked by uid 99); 11 Aug 2019 05:48:35 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Aug 2019 05:48:35 +0000 From: GitBox To: notifications@zookeeper.apache.org Subject: [GitHub] [zookeeper] jhuan31 opened a new pull request #1051: Add server side large request throttling Message-ID: <156550251582.8132.7989920615801211908.gitbox@gitbox.apache.org> Date: Sun, 11 Aug 2019 05:48:35 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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