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 63D49104B8 for ; Sun, 30 Nov 2014 23:18:13 +0000 (UTC) Received: (qmail 80872 invoked by uid 500); 30 Nov 2014 23:18:13 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 80835 invoked by uid 500); 30 Nov 2014 23:18:13 -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 80824 invoked by uid 99); 30 Nov 2014 23:18:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Nov 2014 23:18:13 +0000 Date: Sun, 30 Nov 2014 23:18:13 +0000 (UTC) From: "Benedict (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6976) Determining replicas to query is very slow with large numbers of nodes or vnodes 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-6976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229269#comment-14229269 ] Benedict commented on CASSANDRA-6976: ------------------------------------- On second thoughts, ignore that sentiment entirely. We don't really have any concept of a "lookup table", and we'll have to address that directly when we introduce enum types which is a better place. I guess what really bugs me about this, and what I assumed would be related to the problem (but patently can't given the default behaviour) is that after calculating natural endpoints, we then sort them (based on a couple of hashmap lookups for each end point) for every token range, and also for every single normal query. This sort is performed over RF*DC items in either case, even for queries routed directly to the owning node with CL ONE. I was hoping we'd fix that as a result of this work, since that's a lot of duplicated effort, but that hardly seems sensible now. What we definitely _should_ do, though, is make sure we're (in general) benchmarking behaviour over common config, as our default test configuration is not at all representative. > Determining replicas to query is very slow with large numbers of nodes or vnodes > -------------------------------------------------------------------------------- > > Key: CASSANDRA-6976 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6976 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Benedict > Assignee: Ariel Weisberg > Labels: performance > Attachments: GetRestrictedRanges.java, jmh_output.txt, jmh_output_murmur3.txt, make_jmh_work.patch > > > As described in CASSANDRA-6906, this can be ~100ms for a relatively small cluster with vnodes, which is longer than it will spend in transit on the network. This should be much faster. -- This message was sent by Atlassian JIRA (v6.3.4#6332)