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 619A7200CB0 for ; Fri, 9 Jun 2017 04:29:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 602BC160BE5; Fri, 9 Jun 2017 02:29:23 +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 A7A14160BD5 for ; Fri, 9 Jun 2017 04:29:22 +0200 (CEST) Received: (qmail 24323 invoked by uid 500); 9 Jun 2017 02:29:21 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 24304 invoked by uid 99); 9 Jun 2017 02:29:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 02:29:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 21A1A1AA296; Fri, 9 Jun 2017 02:29:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id j6Mp0liFm0Qm; Fri, 9 Jun 2017 02:29:19 +0000 (UTC) Received: from mail-ot0-f173.google.com (mail-ot0-f173.google.com [74.125.82.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 68DA75F6C7; Fri, 9 Jun 2017 02:29:18 +0000 (UTC) Received: by mail-ot0-f173.google.com with SMTP id k4so32570488otd.0; Thu, 08 Jun 2017 19:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LJkp2VPUZLMyN3ByYQqmmlCH9oO9YJgILDq5yUIyLz0=; b=Pp28docl3liuciWJCaR4RiLJ8at1aVZNcrZZ7+2H1Yo90EJLpbhYxEvGJ0xMpQ2zRP FCvDWf5ums/Nnrxf0znSpGibP052PmPRaUBST8fG0EhLusTEedaURYg9wB5aOOr6t58D gDewBpJENZ+ON6BB6BhdluoJntb8yZOeF+N+DamZCuTt46OJCK3pv9yTjPLpd58Vt8jn HFlhnihfz84aPJBJJfpF3MlTGP0+TQoCE6nB21HIxv67Bjb05h5onYwgr0zyXHQUrVze DF0OPWgemkHrFId3gwzHssCKD5hyAjMMNcWs2JEGa/40S/KJINjSjIpdZ9HEnAfYHiNa c/ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LJkp2VPUZLMyN3ByYQqmmlCH9oO9YJgILDq5yUIyLz0=; b=sANaer7hZNM+mxW+rmibPJ42nTi9sBsKa15gnze8/SE7ByULyTYx5SU/febduea0V7 W49oeC8+z2WNGMjEWaJIUxFvHjUC/+aIUfevzHe/KqfQYVchdVgTjlE2PNF4aqFtBOoi A/HJlE0XsWddK6tzrv3V4uHgxXoO6VuWazsjdt7C+9u42kY0rj0lq40A1OOKeT7GJbcf ieeu93XDFy6th8uQwgiEADYe1eYWmIgYxXorj6JGB0hjNoTaosXZNT6GDLnG+K1PqptJ ix/7Hy6KT8ZIMbS/o2pd9Rm/MNWIiISQZUNEWpsMW/Y1ulW/pJ3BF7CDv4Cy1KEJmsZo +Fvg== X-Gm-Message-State: AKS2vOwcrOy+Nacm5gMLHQEjMxCAC890hJ7A/p4uV3HD+Yv+bH7NzT6u SBTCy9TR98phIAyooZ4UvaE51uOOconP X-Received: by 10.157.47.195 with SMTP id b3mr18967614otd.78.1496975357052; Thu, 08 Jun 2017 19:29:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.9.137 with HTTP; Thu, 8 Jun 2017 19:28:56 -0700 (PDT) From: Dikang Gu Date: Thu, 8 Jun 2017 19:28:56 -0700 Message-ID: Subject: Definition of QUORUM consistency level To: cassandra , dev@cassandra.apache.org Content-Type: multipart/alternative; boundary="001a113db9e4650dfd05517dbc9e" archived-at: Fri, 09 Jun 2017 02:29:23 -0000 --001a113db9e4650dfd05517dbc9e Content-Type: text/plain; charset="UTF-8" Hello there, We have some use cases are doing consistent read/write requests, and we have 4 replicas in that cluster, according to our setup. What's interesting to me is that, for both read and write quorum requests, they are blocked for 4/2+1 = 3 replicas, so we are accessing 3 (for write) + 3 (for reads) = 6 replicas in quorum requests, which is 2 replicas more than 4. I think it's not necessary to have 2 overlap nodes in even replication factor case. I suggest to change the `quorumFor(keyspace)` code, separate the case for read and write requests, so that we can reduce one replica request in read path. Any concerns? Thanks! -- Dikang --001a113db9e4650dfd05517dbc9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello there,

We have some us= e cases are doing consistent read/write requests, and we have 4 replicas in= that cluster, according to our setup.

What's = interesting to me is that, for both read and write quorum requests, they ar= e blocked for 4/2+1 =3D 3 replicas, so we are accessing 3 (for write) + 3 (= for reads) =3D 6 replicas in quorum requests, which is 2 replicas more than= 4.

I think it's not necessary to have 2 overl= ap nodes in even replication factor case.=C2=A0

I = suggest to change the `quorumFor(keyspace)` code, separate the case for rea= d and write requests, so that we can reduce one replica request in read pat= h.

Any concerns?=C2=A0

Th= anks!


--
Dikang
<= br>
--001a113db9e4650dfd05517dbc9e--