Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D6B81726B for ; Fri, 17 Apr 2015 16:43:59 +0000 (UTC) Received: (qmail 85057 invoked by uid 500); 17 Apr 2015 16:43:59 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 85021 invoked by uid 500); 17 Apr 2015 16:43:59 -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 85009 invoked by uid 99); 17 Apr 2015 16:43:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 16:43:59 +0000 Date: Fri, 17 Apr 2015 16:43:59 +0000 (UTC) From: "Brandon Williams (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-9206) Remove seed gossip probability MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Williams updated CASSANDRA-9206: ---------------------------------------- Attachment: 9206.txt > Remove seed gossip probability > ------------------------------ > > Key: CASSANDRA-9206 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9206 > Project: Cassandra > Issue Type: Improvement > Reporter: Brandon Williams > Assignee: Brandon Williams > Fix For: 2.1.5 > > Attachments: 9206.txt > > > Currently, we use probability to determine whether a node will gossip with a seed: > {noformat} > double probability = seeds.size() / (double) (liveEndpoints.size() + unreachableEndpoints.size()); > double randDbl = random.nextDouble(); > if (randDbl <= probability) > sendGossip(prod, seeds); > {noformat} > I propose that we remove this probability, and instead *always* gossip with a seed. This of course means increased traffic and processing on the seed(s), but even a 1000 node cluster with a single seed will only put ~1000 messages per second on the seed, which is virtually nothing. Should it become a problem, the solution is simple: add more seeds. Since seeds will also always gossip with each other, this effectively gives us a poor man's spanning tree, with the only cost being removing a few lines of code, and should greatly improve our gossip convergence time, especially in large clusters. -- This message was sent by Atlassian JIRA (v6.3.4#6332)