Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 39495 invoked from network); 3 Mar 2010 14:41:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Mar 2010 14:41:54 -0000 Received: (qmail 23300 invoked by uid 500); 3 Mar 2010 14:41:46 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 23283 invoked by uid 500); 3 Mar 2010 14:41:46 -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 23266 invoked by uid 99); 3 Mar 2010 14:41:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 14:41:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gdusbabek@gmail.com designates 209.85.211.201 as permitted sender) Received: from [209.85.211.201] (HELO mail-yw0-f201.google.com) (209.85.211.201) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Mar 2010 14:41:40 +0000 Received: by ywh39 with SMTP id 39so467763ywh.21 for ; Wed, 03 Mar 2010 06:41:19 -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=6TsaWuOJLzeEzW9pxm4oeoi7pgxTRNU20S0erCd6K64=; b=pS0Lscv8SOrzZWLXKVEBPqBoioo4wyMW6ngb5yYjX1sz6YasPIrw5DDcwqxBE3Lo/Q WeEKM7Smcm6Ce0m6Q75xJRTegkr+pR6dsPJ6yBVSrA/vB23o3ppc/nA1iMpv0rJXHqMp RqQrSA21ak7j+zHGCJDNdMZkYl4NUdVsC2Epo= 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=ZS6ijAPhQDntfCN0Cw1POuK7l+07Mcsvvjw7+IobzyQ631YOEibYdbooe71mBGEnQO 5MMWq4j8t0v+XlmqYkCIe2RHWsV8P4zOgQgcKaBeg83On2cpig14OYvOzBEmR1fpiA0d 1QwOE+tc39nqKyG+Og8l6fZTzHIlvhKWOLOy4= MIME-Version: 1.0 Received: by 10.150.128.35 with SMTP id a35mr754558ybd.213.1267627279290; Wed, 03 Mar 2010 06:41:19 -0800 (PST) Reply-To: gdusbabek@gmail.com In-Reply-To: <87k4ttqy8k.fsf@lifelogs.com> References: <87hbozq574.fsf@lifelogs.com> <87eik1lf8b.fsf@lifelogs.com> <1c6fcff1003030557v527c2dcbn78e1ea9f93adc328@mail.gmail.com> <87k4ttqy8k.fsf@lifelogs.com> Date: Wed, 3 Mar 2010 08:41:18 -0600 Message-ID: <1c6fcff1003030641g4737155fl4cb9b901bd9ebf13@mail.gmail.com> Subject: Re: finding Cassandra servers From: Gary Dusbabek To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2010/3/3 Ted Zlatanov : > > I don't think routing multicasts across subnets is a burden. Try telling that to a network administrator who is concerned about flooding his routers with multicast chatter. First, you'll have to find a network administrator who is willing to even have that conversation. That setting defaults to 'off' for very good reasons. > > GD> RRDNS would work, but something would need to keep that updated when > GD> servers go away (it wouldn't be automatic). > > GD> If you can count on one of your (seed nodes) to be up, RRDNS could be > GD> used to connect to one of them and fetch the token range list. =A0To = do > GD> this, create a thrift client and call describe_ring. =A0In older > GD> versions you can get a jsonified endpoint map by calling > GD> get_string_property('token map'). > > It would really be much more efficient if I didn't have to maintain > RRDNS, but could instead look at the mDNS broadcasts for the Cassandra > service. =A0What you describe is a centralized model, no? > > With mDNS I wouldn't have to know which nodes are up or down, and I > wouldn't have to do extra queries, it would just work. =A0I don't see why > Cassandra doesn't need that functionality. =A0How else could you be > guaranteed to find a live node if there is one on your subnet? > It wouldn't be a lot work for you to write a mdns service that would query the seeds for endpoints and publish it to interested clients. It could go in contrib. Gary.