From cassandra-user-return-937-apmail-incubator-cassandra-user-archive=incubator.apache.org@incubator.apache.org Fri Oct 16 13:36:39 2009 Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 2805 invoked from network); 16 Oct 2009 13:36:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 13:36:39 -0000 Received: (qmail 69186 invoked by uid 500); 16 Oct 2009 13:36:39 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 69141 invoked by uid 500); 16 Oct 2009 13:36:39 -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 69037 invoked by uid 99); 16 Oct 2009 13:36:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 13:36:39 +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 simongsmith@gmail.com designates 209.85.210.174 as permitted sender) Received: from [209.85.210.174] (HELO mail-yx0-f174.google.com) (209.85.210.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 13:36:31 +0000 Received: by yxe4 with SMTP id 4so1313054yxe.32 for ; Fri, 16 Oct 2009 06:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XauCN8s+5on5jG4Dud64aZ/+gV+5ngLwhrWhlHIGhCY=; b=WmRtNpr+yOojUfV6O+xWegtbGDqo8qzxJBFHKszsm/RQDJUIV3Vl4ViOPeKH2Rt+NZ twxZQnnFIXawTOKOCkY+ojdL7SYndHUXH4AbokhqSVtv2kDAm42yKXheAzDqBOcm/o9F UhSbKrRvfanJhHd77xT9lOrKqLpuo8WrhqWAg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=XqpwaMy8UkiUCp+5bEqb/AmN845OhRieHhgA2cf/wVcQD4SmVsKcqiVfRE0Xtwm63P 3SNG7/W58OMkwCawoXrZCXHCPaaRsNjVCzla23pO4v7mybECec9bmRZQD0Vzzm9R3Im5 9CXKOhzBRa3YM9HrvY8tEbCNS36fgpkAownhU= MIME-Version: 1.0 Received: by 10.150.79.1 with SMTP id c1mr2805337ybb.75.1255700169953; Fri, 16 Oct 2009 06:36:09 -0700 (PDT) In-Reply-To: <91882eb0910152033h32a6b4d4vefe5572124724c1@mail.gmail.com> References: <91882eb0910150826w16dc4e08g62ec1d279b458255@mail.gmail.com> <20091015183808.GB3304@alumni.caltech.edu> <91882eb0910152033h32a6b4d4vefe5572124724c1@mail.gmail.com> Date: Fri, 16 Oct 2009 09:36:09 -0400 Message-ID: Subject: Re: Thrift Perl API Timeout Issues From: Simon Smith To: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I don't have an opinion on the default timeout. But in my experience with other applications, you want to consciously make a choice about what your timeout, based on your architecture and performance requirements. You're much better off explicitly setting a timeout that will cause your transaction to finish in a time a little longer than you'd like and then either re-try or error out the transaction. An alternate approach is is to set a quick timeout, one that is just over the 99.?th percentile of transaction times, and then retry. (But whatever you do, don't just retry endlessly, or you may end up with this terrible growing mess of transactions retrying.) In either case, it's a good idea to be monitoring the frequency of timeouts, so if they increase over the baseline you can track down the cause and fix it. Just my $0.02. Simon On Thu, Oct 15, 2009 at 11:33 PM, Eric Lubow wrote: > So I ran the tests again twice with a huge timeout and it managed to run = in > just under 3 hours both times. =A0So this issue is definitely related to = the > timeouts. =A0It might be worth changing the default timeouts for Perl to = match > the infinite timeouts for Python. =A0Thanks for the quick responses. > -e