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 0FC4AF03E for ; Fri, 14 Nov 2014 15:23:34 +0000 (UTC) Received: (qmail 50439 invoked by uid 500); 14 Nov 2014 15:23:33 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 50389 invoked by uid 500); 14 Nov 2014 15:23:33 -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 50376 invoked by uid 99); 14 Nov 2014 15:23:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2014 15:23:33 +0000 Date: Fri, 14 Nov 2014 15:23:33 +0000 (UTC) From: "Bob Nilsen (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8313) cassandra-stress: No way to pass in data center hint for DCAwareRoundRobinPolicy 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-8313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14212373#comment-14212373 ] Bob Nilsen commented on CASSANDRA-8313: --------------------------------------- Thanks for the help, Michael. I believe the problem is that DCAwareRoundRobinPolicy() needs a 'DC1' hint in the constructor, otherwise it'll pick a DC based on the order of the list returned by the cluster. It would seem best (in my opinion) to let the user select the LoadBalancingPolicy (and any arguments to pass to it) via command line options. I'll do some more testing with the -node option and let you know what I find. > cassandra-stress: No way to pass in data center hint for DCAwareRoundRobinPolicy > -------------------------------------------------------------------------------- > > Key: CASSANDRA-8313 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8313 > Project: Cassandra > Issue Type: Improvement > Components: Tools > Reporter: Bob Nilsen > > When using cassandra-stress in a multiple datacenter configuration, we need to be able to behave like the applications do and send traffic to nodes co-located in the same data center. > I can't for the life of me figure out how to pass in such a hint into the new cassandra-stress. > And passing in a local node into "-node" doesn't help. Apparently, cassandra-stress will *guess* the data center based on the order of the list that it receives from the cluster. > In my case, it seems to always pick 'DC2', no matter what I do. > INFO 22:17:06 Using data-center name 'DC2' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) > Could someone please add the ability to configure the DCAwareRoundRobinPolicy with a data center hint? -- This message was sent by Atlassian JIRA (v6.3.4#6332)