Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5547610874 for ; Wed, 5 Feb 2014 20:45:55 +0000 (UTC) Received: (qmail 55368 invoked by uid 500); 5 Feb 2014 20:45:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 55316 invoked by uid 500); 5 Feb 2014 20:45:51 -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 55307 invoked by uid 99); 5 Feb 2014 20:45:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 20:45:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 20:45:44 +0000 Received: by mail-qa0-f42.google.com with SMTP id k4so1436345qaq.29 for ; Wed, 05 Feb 2014 12:45:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=ySkZ1ztN4ypbsbmCMP/67rvZztgR4yw6dYJJKmV+fJE=; b=B8k2TUANoFbwGWiocvq7nSkzvZHuVRGbd6TQR9uKRKGusk/chxwqzbtcFkinMB1Orx tBZV8m2XeYWWm3SOnR7cgYDMafVxqHUAXB8PFDgkM7SRqiTd2ndNmT0Agnaz10gy0hk+ D4z4Y2vEV3dw0MULQwVWzqfGq10b8VzN5AgFRwLKwDZoDSEiHz04sv+33ipfpPzWVTdo tl0fTVyWbXO7mwuAAMEJyaSbrn655wRuQGtrcNIQTjoSjZEY2hBrykEY5tiU9ojZn1pO CVWqFMZmxNP2yDdKxs4gbDZ2ZofsOhNAyqmXmy8KbtDJe2NzybTgV3CvCaBX7kXi3GRJ vhZw== X-Gm-Message-State: ALoCoQmNv2fXgi8y6zSFZ2WVkEo/ZR+t/NveFu70q9Y6+gV2FOsLplNxa8NtDVAAqLsBGRrSGBQ0 MIME-Version: 1.0 X-Received: by 10.224.72.72 with SMTP id l8mr6203044qaj.51.1391633120546; Wed, 05 Feb 2014 12:45:20 -0800 (PST) Received: by 10.140.86.38 with HTTP; Wed, 5 Feb 2014 12:45:20 -0800 (PST) Date: Wed, 5 Feb 2014 15:45:20 -0500 Message-ID: Subject: Question about how DataStax python driver chooses a coordinator From: Sameer Farooqui To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7bf0e1f6ced8bb04f1aed516 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bf0e1f6ced8bb04f1aed516 Content-Type: text/plain; charset=ISO-8859-1 Does the new DataStax Python Driver 1.0.0 intelligently choose a coordinator that is also likely to be a replica partner for that row-key when using vnodes in C* 2.0? If so, how does it do it... just hash the row-key and see which partition range it falls in and which node owns that range? Here is all the DataStax blog post says on this topic: "When a query is executed, a list of nodes to attempt the query against is generated. If the query fails against the first node in the list, the second node may be used, and so on. When sending a query to a node, the driver selects the least-utilized connection from that node's connection pool and issues the query." How is that list of nodes generated? Also, does the current version of the DS Java driver also intelligently choose a coordinator that is likely to already hold a replica of the row key? - SF --047d7bf0e1f6ced8bb04f1aed516 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Does the new DataStax Python Driver 1.0.0 intell= igently choose a coordinator that is also likely to be a replica partner fo= r that row-key when using vnodes in C* 2.0? If so, how does it do it... jus= t hash the row-key and see which partition range it falls in and which node= owns that range?

Here is all the DataStax blog post says on this topic:<= /div>

"When a query is executed, a list of nodes to atte= mpt the query against is generated. If the query fails against the first no= de in the list, the second node may be used, and so on. When sending a quer= y to a node, the driver selects the least-utilized connection from that nod= e’s connection pool and issues the query."

How is that list of nodes generated?


Also, does the current version of the DS Java driver also = intelligently choose a coordinator that is likely to already hold a replica= of the row key?

- SF
--047d7bf0e1f6ced8bb04f1aed516--