Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 2384 invoked from network); 16 Mar 2010 21:55:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Mar 2010 21:55:45 -0000 Received: (qmail 96874 invoked by uid 500); 16 Mar 2010 21:55:45 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 96860 invoked by uid 500); 16 Mar 2010 21:55:45 -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 96852 invoked by uid 99); 16 Mar 2010 21:55:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 21:55:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bburruss@real.com designates 207.188.23.4 as permitted sender) Received: from [207.188.23.4] (HELO kal-el.real.com) (207.188.23.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 21:55:37 +0000 Received: from seacas01.corp.real.com ([::ffff:192.168.139.56]) (TLS: TLSv1/SSLv3,128bits,AES128-SHA) by kal-el.real.com with esmtp; Tue, 16 Mar 2010 14:55:16 -0700 id 0008004D.4B9FFE44.00006D27 Received: from [172.21.131.225] (192.168.198.6) by seacas01.corp.real.com (192.168.139.56) with Microsoft SMTP Server id 8.2.176.0; Tue, 16 Mar 2010 14:55:15 -0700 Message-ID: <4B9FFE45.4040709@real.com> Date: Tue, 16 Mar 2010 14:55:17 -0700 From: "B. Todd Burruss" User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "user@cassandra.apache.org" Subject: Re: Dividing the client load between machines in Cassandra References: <991ae7f81003161430r705a00fu85949dd1dd327f6@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Old-Return-Path: bburruss@real.com X-Virus-Checked: Checked by ClamAV on apache.org if you choose #3 - get_string_property("token map") - keep in mind that the IPs returned from this call are the IPs used for "ListenAddress" param in storage-conf.xml. In my case we have two NICs and I set this to be an IP that is only for "node to node" communication. The "ThriftAddress" param is the one i really want. maybe this has been changed, "fixed" ;), haven't tested in a while. Jonathan Ellis wrote: > http://wiki.apache.org/cassandra/FAQ#node_clients_connect_to > > On Tue, Mar 16, 2010 at 4:30 PM, Sonny Heer wrote: > >> How can I accomplish this? >> >> The way I'm doing it now it is creating a TSocket connection using a >> static IP of one of the boxes on Cassandra: >> TTransport tr = new TSocket(host, port.intValue()); >> TProtocol proto = new TBinaryProtocol(tr); >> Cassandra.Client client = new Cassandra.Client(proto); >> tr.open(); >> >> With a larger cluster I would imagine there is another preferred >> solution with no single point of failure (e.g. that one box goes >> down). >> >>