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 A37676121 for ; Thu, 16 Jun 2011 17:12:35 +0000 (UTC) Received: (qmail 98255 invoked by uid 500); 16 Jun 2011 17:12:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 98229 invoked by uid 500); 16 Jun 2011 17:12:32 -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 98221 invoked by uid 99); 16 Jun 2011 17:12:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 17:12:32 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 17:12:27 +0000 Received: by wwa36 with SMTP id 36so1525809wwa.25 for ; Thu, 16 Jun 2011 10:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=vbHA2k+6BCEemAxOhMC/Pa8Hm72Bi6XTXQHYS3FvCTk=; b=VhZ4mHzYxXtXOxJS15DyaRas1zwaEUML//aCGw1sHKcP7PqI8C/zms065f8AP23RXi ZkzNSJn6DTxWTmiwFx0QpGK+Jr08zBR+GkNSEZU1180wzUqtc/pSHDxMH5S/XcPt6vXB QaTCQZC7kNIYCHRM1HVksSjMblfmFrZQWG1x8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=bUrm9a8OEa3LVUrRrYHtnmh+jKd71C/vqJgp9Xqic03gwKFc8lTWmmt95D8QKluXV5 Ln62lyWMe9hcBC5i0+B0OChGIRNzEy+ttBKW8P5yydzTGRYJ6eqQXHbGxhhvgrMv50PP qBGXsAjvn1BQdAwdZu8Pjjc+XvsBX6OJNT2kw= Received: by 10.216.16.32 with SMTP id g32mr1241259weg.0.1308244327267; Thu, 16 Jun 2011 10:12:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.89.70 with HTTP; Thu, 16 Jun 2011 10:11:47 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Thu, 16 Jun 2011 10:11:47 -0700 Message-ID: Subject: Re: snitch & thrift To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Seems like a more robust solution would be to implement dynamic-snitch-like behavior in the client. Hector has done this for a few months now. https://github.com/rantav/hector/blob/master/core/src/main/java/me/prettyprint/cassandra/connection/DynamicLoadBalancingPolicy.java On Thu, Jun 16, 2011 at 9:12 AM, Ryan King wrote: > On Thu, Jun 16, 2011 at 6:11 AM, Terje Marthinussen > wrote: >> Hi all! >> Assuming a node ends up in GC land for a while, there is a good chance that >> even though it performs terribly and the dynamic snitching will help you to >> avoid it on the gossip side, it will not really help you much if thrift >> still accepts requests and the thrift interface has choppy performance. >> This makes me wonder if it is a potential idea with thrift only client mode >> nodes. > > Those could GC too, albeit to a lesser degree. > >> I don't think I have seen that this exists today (or is it possible that I >> have missed a way to configure that?), but it does not seem like a very hard >> thing to make and could maybe be good in some usage patterns for the >> datanode as well as the thrift side. > > It might be sometimes useful, but we can't really know without running > some tests. > > -ryan > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com