Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 41810 invoked from network); 1 Feb 2010 13:59:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 13:59:28 -0000 Received: (qmail 57464 invoked by uid 500); 1 Feb 2010 13:59:27 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 57449 invoked by uid 500); 1 Feb 2010 13:59:27 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 57440 invoked by uid 99); 1 Feb 2010 13:59:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 13:59:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gdusbabek@gmail.com designates 209.85.217.219 as permitted sender) Received: from [209.85.217.219] (HELO mail-gx0-f219.google.com) (209.85.217.219) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 13:59:19 +0000 Received: by gxk19 with SMTP id 19so729359gxk.0 for ; Mon, 01 Feb 2010 05:58:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=U6KujKmn9DdBVXQ9lJ58tRdkDbTprWEhzytmMV+RtOw=; b=suL8U8TBoQJviKbrAvkt3ENAdPETgPMZxf8XAZt+WRDlf2yYmn64PT6f4ujP17QjZy TtT+1SDkfPJgq+2mlVML1RRH9OhsuaQnsQtsajwMFRQvxIQriVkpxcfu8d27/lIZtYWt pha87YPdOcCFdVWmHorVWDceK+NEwpSDFh1wk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=KNNQ7eemYQc2hXi4IfnWWu4uyEMOfmH4ckxpjvuHQtICjLaVGDdzZmTlOE0UTAtGcp xBhB6syPuPFa+frpblIYK+pLqnSVKILiFIELsneXKD94xh5SGIz7/6yvMd5cgvdFb1jH YsMyDeEbDc/t7xrxj2Zs8Z0KREfPcxXgSE6tA= MIME-Version: 1.0 Received: by 10.150.128.41 with SMTP id a41mr6193739ybd.245.1265032738508; Mon, 01 Feb 2010 05:58:58 -0800 (PST) Reply-To: gdusbabek@gmail.com In-Reply-To: <5e76b0ad1002010454p7adb3ef8vba57f496f62ba855@mail.gmail.com> References: <5e76b0ad1002010454p7adb3ef8vba57f496f62ba855@mail.gmail.com> Date: Mon, 1 Feb 2010 07:58:58 -0600 Message-ID: <1c6fcff1002010558y58d149efs1bd97da36ae6e1a5@mail.gmail.com> Subject: Re: How do cassandra clients failover? From: Gary Dusbabek To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org One approach is to discover what other nodes there are before any of them fail. Then when you detect failure, you can connect to a different node that is (hopefully) still responding. There is an API call that allows you get get a list of all the nodes: client.get_string_property("token map"), which returns a JSON list of the node ring. I hope that helps. Gary. 2010/2/1 Noble Paul =E0=B4=A8=E0=B5=8B=E0=B4=AC=E0=B4=BF=E0=B4=B3=E0=B5=8D= =E2=80=8D =E0=A4=A8=E0=A5=8B=E0=A4=AC=E0=A5=8D=E0=A4=B3=E0=A5=8D : > The cassandra client (thift client) is started up with the host:post > of a single cassandra node. > > * What happens if that node fails? > * Does it mean that all the operations go through the same node? > > --Noble >