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 9BB17200BED for ; Sun, 18 Dec 2016 02:03:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9A366160B28; Sun, 18 Dec 2016 01:03:13 +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 E2578160B16 for ; Sun, 18 Dec 2016 02:03:12 +0100 (CET) Received: (qmail 95271 invoked by uid 500); 18 Dec 2016 01:03:11 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 95261 invoked by uid 99); 18 Dec 2016 01:03:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2016 01:03:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 198C018068F for ; Sun, 18 Dec 2016 01:03:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tIfFHKqkXZ2T for ; Sun, 18 Dec 2016 01:03:09 +0000 (UTC) Received: from mx1.core43.com (jaws.core43.com [54.187.139.74]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 7B4375F299 for ; Sun, 18 Dec 2016 01:03:08 +0000 (UTC) Received: from mx1.core43.com (localhost [127.0.0.1]) by mx1.core43.com (Postfix) with ESMTP id CDCA93C43E for ; Sat, 17 Dec 2016 17:02:53 -0800 (PST) X-Spam-Trusted-Relays: [ ip=10.1.0.1 rdns= helo=mail.core43.com by=mx1.core43.com ident= envfrom= intl=1 id=C07533C282 auth= msa=0 ] [ ip=10.0.1.1 rdns= helo=!10.0.1.53! by=mail.core43.com ident= envfrom= intl=1 id=90D215A9454 auth= msa=0 ] X-Spam-Untrusted-Relays: X-Spam-Language: X-Spam-Relay-Country: Received: from mail.core43.com (unknown [10.1.0.1]) by mx1.core43.com (Postfix) with ESMTPS id C07533C282 for ; Sat, 17 Dec 2016 17:02:53 -0800 (PST) Received: from [10.0.1.53] (unknown [10.0.1.1]) by mail.core43.com (Postfix) with ESMTPS id 90D215A9454 for ; Sat, 17 Dec 2016 17:02:53 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: quick questions From: Max C In-Reply-To: Date: Sat, 17 Dec 2016 17:02:52 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <464D32DC-414C-4B8A-9D2C-D2D71C25E662@core43.com> References: To: user@cassandra.apache.org X-Mailer: Apple Mail (2.2104) archived-at: Sun, 18 Dec 2016 01:03:13 -0000 As Matija mentioned, quorum is RF / 2 + 1: RF=3D1, Quorum =3D 1 RF=3D2, Quorum =3D 2 RF=3D3, Quorum =3D 2 RF=3D4, Quorum =3D 3 RF=3D5, Quorum =3D 3 RF=3D6, Quorum =3D 4 RF=3D7, Quorum =3D 4 So no, you don=E2=80=99t have to have an odd RF to achieve a quorum, as = you see above. Most people use RF=3D3 with a minimum of 3 nodes, = though. For RF=3D3, 2 of the 3 nodes need to be up in order to satisfy = a quorum read/write. If you can=E2=80=99t achieve a quorum and you=E2=80=99re trying to = read/write with quorum consistency then the read/write operation will = fail. You could still do reads/writes with CL=3DONE, though (provided = that at least 1 of the replicas was up). - Max > On Dec 17, 2016, at 1:21 pm, Kant Kodali wrote: >=20 > I keep hearing that the minimum number of Cassandra nodes required to = achieve Quorum consensus is 4 I wonder why not 3? In fact, many = container deployments by default seem to deploy 4 nodes. Can anyone = shine some light on this? >=20 > What happens if I have 3 nodes and replication factor of 3 and = consistency level: quorum? I should be able to achieve quorum level = consensus right. >=20 > If Total node =3D 3, RF=3D2 and consistency level =3D Quorum. Then I = understand the quorum level consensus is not possible because the number = of replica nodes here are 2. > This also brings up another question does number of replica nodes = always have to be an odd number to achieve quorum level consensus? If = so, what happens when a replica node goes down ? it would still serve = the requests but the quorum level consensus is not possible? >=20 > Thanks > kant >=20 >=20 >=20 >=20 >=20