Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2B03C200B50 for ; Fri, 15 Jul 2016 05:07:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 299B8160A85; Fri, 15 Jul 2016 03:07:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 71640160A63 for ; Fri, 15 Jul 2016 05:07:27 +0200 (CEST) Received: (qmail 43823 invoked by uid 500); 15 Jul 2016 03:07:21 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 43793 invoked by uid 99); 15 Jul 2016 03:07:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2016 03:07:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BCE712C02B8 for ; Fri, 15 Jul 2016 03:07:20 +0000 (UTC) Date: Fri, 15 Jul 2016 03:07:20 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9318) Bound the number of in-flight requests at the coordinator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Jul 2016 03:07:28 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-9318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378784#comment-15378784 ] Stefania commented on CASSANDRA-9318: ------------------------------------- I don't have much to add regarding the merits of one approach vs. the other, other than to say that I agree with [~slebresne] that we should implement the strategy API so that both strategies can be supported, and this will make it more likely that the API is fit for even more strategies. I would even go one step further and suggest that the second strategy should be relatively easy to implement if the framework is in place and if we can work out a reasonable threshold. Therefore we could consider implementing and testing both, either as part of a follow up ticket or this one. Another thing I would like to point out is that, once we make read and write requests fully non-blocking, either via CASSANDRA-10993 or CASSANDRA-10528, we will probably have to rethink this. > Bound the number of in-flight requests at the coordinator > --------------------------------------------------------- > > Key: CASSANDRA-9318 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9318 > Project: Cassandra > Issue Type: Improvement > Components: Local Write-Read Paths, Streaming and Messaging > Reporter: Ariel Weisberg > Assignee: Sergio Bossa > Attachments: 9318-3.0-nits-trailing-spaces.patch, backpressure.png, limit.btm, no_backpressure.png > > > It's possible to somewhat bound the amount of load accepted into the cluster by bounding the number of in-flight requests and request bytes. > An implementation might do something like track the number of outstanding bytes and requests and if it reaches a high watermark disable read on client connections until it goes back below some low watermark. > Need to make sure that disabling read on the client connection won't introduce other issues. -- This message was sent by Atlassian JIRA (v6.3.4#6332)