Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 52609 invoked from network); 19 Mar 2008 07:08:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2008 07:08:17 -0000 Received: (qmail 72339 invoked by uid 500); 19 Mar 2008 07:08:13 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 72247 invoked by uid 500); 19 Mar 2008 07:08:13 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 72238 invoked by uid 99); 19 Mar 2008 07:08:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 00:08:13 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 07:07:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2F7AC234C0A6 for ; Wed, 19 Mar 2008 00:06:24 -0700 (PDT) Message-ID: <2057531826.1205910384179.JavaMail.jira@brutus> Date: Wed, 19 Mar 2008 00:06:24 -0700 (PDT) From: "Hairong Kuang (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-2910) Throttle IPC Client/Server during bursts of requests or server slowdown In-Reply-To: <1655129481.1204139511113.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hairong Kuang updated HADOOP-2910: ---------------------------------- Attachment: callQueue3.patch This patch makes sure that an InterruptedException gets caught by the listener thread, which therefore gets stopped. > Throttle IPC Client/Server during bursts of requests or server slowdown > ----------------------------------------------------------------------- > > Key: HADOOP-2910 > URL: https://issues.apache.org/jira/browse/HADOOP-2910 > Project: Hadoop Core > Issue Type: Improvement > Components: ipc > Affects Versions: 0.16.0 > Reporter: Hairong Kuang > Assignee: Hairong Kuang > Fix For: 0.17.0 > > Attachments: callQueue.patch, callQueue1.patch, callQueue2.patch, callQueue3.patch > > > I propose the following to avoid an IPC server being swarmed by too many requests and connections > 1. Limit call queue length or limit the amount of memory used in the call queue. This can be done by including the size of a request in the header and storing unmarshaled requests in the call queue. > 2. If the call queue is full or queue buffer is full, stop reading requests from sockets. So requests stay at the server's system buffer or at the client side and thus eventually throttle the client. > 3. Limit the total number of connections. Do not accept new connections if the connection limit is exceeded. (Note: this solution is unfair to new connections.) > 4. If receive out of memory exception, close the current connection. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.