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 E05A5200B3C for ; Wed, 13 Jul 2016 15:45:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DE402160A62; Wed, 13 Jul 2016 13:45:22 +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 32951160A6A for ; Wed, 13 Jul 2016 15:45:22 +0200 (CEST) Received: (qmail 75884 invoked by uid 500); 13 Jul 2016 13:45: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 75860 invoked by uid 99); 13 Jul 2016 13:45:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2016 13:45:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2E6FD2C02A9 for ; Wed, 13 Jul 2016 13:45:21 +0000 (UTC) Date: Wed, 13 Jul 2016 13:45:21 +0000 (UTC) From: "Jonathan Ellis (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: Wed, 13 Jul 2016 13:45:23 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-9318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15375012#comment-15375012 ] Jonathan Ellis commented on CASSANDRA-9318: ------------------------------------------- bq. Hints are not a solution for chronically overloaded clusters where clients ingest faster than replicas can consume That is the situation I describe in scenario 3, which is the problem I opened this ticket to solve. So, I agree that scenario is a problem, but I don't think this proposal is a very good solution for that, and it causes other problems in the other two (non-global-overload) scenarios. bq. I think we do solve that, actually in a better way, which takes into consideration all replicas, not just the coordinator capacity of acting as a buffer, unless I'm missing a specific case you're referring to? I honestly don't see what is "better" about a "slow every write down to the speed of the slowest, possibly sick, replica" approach. Defining a simple high water mark on requests in flight should be much simpler without the negative side effects. > 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)