Return-Path: X-Original-To: apmail-jclouds-user-archive@minotaur.apache.org Delivered-To: apmail-jclouds-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F19A1743D for ; Fri, 17 Oct 2014 16:46:10 +0000 (UTC) Received: (qmail 10259 invoked by uid 500); 17 Oct 2014 16:46:10 -0000 Delivered-To: apmail-jclouds-user-archive@jclouds.apache.org Received: (qmail 10194 invoked by uid 500); 17 Oct 2014 16:46:09 -0000 Mailing-List: contact user-help@jclouds.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@jclouds.apache.org Delivered-To: mailing list user@jclouds.apache.org Received: (qmail 10184 invoked by uid 99); 17 Oct 2014 16:46:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 16:46:09 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FORGED_YAHOO_RCVD,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yurykats@yahoo.com designates 216.109.114.223 as permitted sender) Received: from [216.109.114.223] (HELO nm43-vm4.bullet.mail.bf1.yahoo.com) (216.109.114.223) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 16:46:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1413564342; bh=0lgucqMQx7BSoMuIduI2YflXFVNhc4jmbxVCAd/tTB4=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=UB9l8/rdWPcFrPIbIDSeDe28PqwbMgdSM5IzbolQDRMlxjxafWsNrKGhnFRAzMbAWd0Zbm8LNFkpB/uQwGzTaoLN9Aqd9VaBv2sTn0H3jfhaN+BmNROomzrFd+etlwSY1Rj2PEAoFwenanohYX0Zby1xE8QMaK+A1vb+jaB9B+fmw46dvaFKHP0FiAUzr87AJsk7+YeXr2npjEc5zla/j8+UMZeiweugJOliFI1sYDD/UJWyf8dNdImRCAc0XL+urfllr9EY57qOi6/vhqDNQ4g6vBHixjRa/UucOHRlXvQLblnfMpJMQ9IrL8nNsSGnXPtDCtLRorq8pz9kDX7NKQ== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com; b=uIr1OeckcvTJF4LMyjbFzdZIaCLBbd8yiuUf4YiJXMcUbPLPHGO8WfNqFKm+6Kt+VGRE+bHcDbnfw82aF8W+4Vl3yFeGV8iroA/yFFj+KV8jCL8O9Dd4jg0XBb95U/C2yDyWVlrhlwXyOqpW2ER/lWWJ6NA21TtpOY5wNPLRIwKvQcbRJrtf9YTzPEF/C+TtjTUzQHfaZIj+AZ1V3sgVUFS+J1uvqLDeQmkAzk2bnmwOlcGvmo/LVD/qweJ6JxlFvxyYiVyI/4ccR6kWtmos7SoorOY/Y3X8WlaBqJzrnQu1R/CeQMA/d7n3fLXmzPOm7Wd9j6+BDjdYh7LMLXYyXw==; Received: from [66.196.81.173] by nm43.bullet.mail.bf1.yahoo.com with NNFMP; 17 Oct 2014 16:45:42 -0000 Received: from [68.142.230.71] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 17 Oct 2014 16:45:42 -0000 Received: from [127.0.0.1] by smtp228.mail.bf1.yahoo.com with NNFMP; 17 Oct 2014 16:45:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1413564342; bh=0lgucqMQx7BSoMuIduI2YflXFVNhc4jmbxVCAd/tTB4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=l9JEvPXMQw8PFQjKcsax7xHrFsQPEK8LlX1m/qrwXOgukYnCkhwfqYMG29+ux6xsr33AB+3v2iTYpgpNXxPzRoGsKeuv5m/pX/rOwNFVkCNXVTcrKkqyQu79a9c9hO70lwyROlg7Cikrt5w3PKq1gRjYBnc8hhtWCdxfqL8yqkY= X-Yahoo-Newman-Id: 13195.32608.bm@smtp228.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: HgLW06EVM1kNIXu9X_NLWSKEpBmPLrK6x.mK45ySlfKDsUa uJPhRNnWgTaBGGc7bBhkLQs3B1RDdO7sforhn3Ptzfli97WhR1p_yWmQog9N JctE6VwxvmCKhBpTYjrfJxjXCcMqggYD3QQrZGAGus_VViQ8KKWPFh.bb3y6 Fez55Xdlfg9OpHcFVvFWRvJo_SmMuiQ.OP4NBh8t_sSm4GmZ7LDG3UjSOd3S x._IQKOL4F6TnsTUsxfjNcJkGpNXTM2fIIpFzwVC6bwJph00TaUzFvCYGlgR PxifAZYdPv9lVGxdBfqtpvfMX.HXRUJd81WqRdK3kzJSuxdaNEpyTRpFPIA6 gv1KYB3FFxnJ1JZyst2pmAvIvhEa06U6vZV0tU9vKFqLkQ.KwB7wvss8GEBi 7h7yrI80Pcnn.pcxqtgehhxHWka2wIk1pifodFMXLn1bYlZN5XBVVjmIsId. YMG.nbQBR5tUAoXAJC4ev9tJEqK7BzhxGIJ7_EX7LYVKs0M2lPWXR58ntSY6 9Y9j9R.N1896l1wzQFBXEQ98jHA-- X-Yahoo-SMTP: Xc0D9PSswBCzl7QEioTGF6RJytwf Message-ID: <544147B4.4020608@yahoo.com> Date: Fri, 17 Oct 2014 12:45:40 -0400 From: Yury Kats User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6 Mnenhy/0.7.1 MIME-Version: 1.0 To: user@jclouds.apache.org Subject: Re: use exponential backoff on retry (was RE: JClouds BlobStore re-authentication when auth token expires) References: <8070c6efe74643e58385e56026d6356f@BLUPR0501MB897.namprd05.prod.outlook.com> <3918EC648ABC75468E8516B58EB8169C140147C6@ORD1EXD04.RACKSPACE.CORP>,<41b9406ce4e24ad2b32d6afe45389ced@BLUPR0501MB897.namprd05.prod.outlook.com> <3918EC648ABC75468E8516B58EB8169C140296F4@ORD1EXD04.RACKSPACE.CORP> In-Reply-To: <3918EC648ABC75468E8516B58EB8169C140296F4@ORD1EXD04.RACKSPACE.CORP> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org CONNECTION_TIMEOUT applies to establishing a connection SO_TIMEOUT applies to existing connection that is idle. On 10/17/2014 12:32 PM, Zack Shoylev wrote: > They are slightly different. I think the connection timeout only applies when initiating the connection to the remote host. I don't think they are additive. > ________________________________________ > From: Daniel Hsueh [Daniel.Hsueh@evault.com] > Sent: Wednesday, October 15, 2014 11:02 AM > To: user@jclouds.apache.org > Subject: RE: use exponential backoff on retry (was RE: JClouds BlobStore re-authentication when auth token expires) > > Hello Zack, > > Thank you for the explanation. > > Could you clarify if, at each retry (after the delay), the SO_TIMEOUT (or CONNECTION_TIMEOUT) is waited-for as well? And what is the difference between the SO_TIMEOUT and the CONNECTION_TIMEOUT? (Comments in Constants.java say socket connection vs connection, code [e.g. HttpUtils] says "so" is socket open, and I can't seem to trace exactly where the values end up being used in practice.) > > Thank you again. > > Daniel Hsueh > mailto:daniel.hsueh@evault.com tel:+1-905-287-2167 > > -----Original Message----- > From: Zack Shoylev [mailto:zack.shoylev@RACKSPACE.COM] > Sent: September 10, 2014 11:48 AM > To: user@jclouds.apache.org > Subject: RE: use exponential backoff on retry (was RE: JClouds BlobStore re-authentication when auth token expires) > > Hi Daniel, > > You should try testing with these Properties: > > PROPERTY_SO_TIMEOUT - This will time-out the HTTP connection socket after the specified time. This specifies how long the client should wait before jclouds closes the connection and attempts to retry the HTTP call. I would suggest a value of 5 seconds. > > PROPERTY_MAX_RETRIES - This specifies the maximum number of retries for the call that will be attempted by jclouds. Note that setting this to 0 will result in a single call. Setting this to 1 will retry once before failing. > > PROPERTY_RETRY_DELAY_START - This specifies how long the exponential backoff waits between retries. The exponential backoff retry mechanism in jclouds will double this value after each retry. > > I don't think you can set them differently for different operations, though. > > -Zack > ________________________________________ > From: Daniel Hsueh [Daniel.Hsueh@evault.com] > Sent: Wednesday, September 10, 2014 8:38 AM > To: user@jclouds.apache.org > Subject: use exponential backoff on retry (was RE: JClouds BlobStore re-authentication when auth token expires) > > Hello everyone, > > Is there a way to configure the lengths of the delay in between retry attempts on auth, read, or write operations? > > Thank you. > > > Daniel Hsueh > mailto:daniel.hsueh@evault.com tel:+1-905-287-2167 > > -----Original Message----- > From: Daniel Hsueh > Sent: September 2, 2014 11:38 AM > To: 'user@jclouds.apache.org' > Subject: RE: JClouds BlobStore re-authentication when auth token expires > > [snip] > > One thing I'd like to configure is some kind of exponential backoff when the auth retry fails. IIRC, there are three RetryOnRenew classes, and they either retry 5 times, or retry 5 times with a fixed delay between the 2,3,4th attempts. Is there a way to configure an increasing backoff? > > Thanks! > > > Daniel Hsueh > mailto:daniel.hsueh@evault.com tel:+1-905-287-2167 > >