This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 99c5d87  Relax connection retry in invoker (#3731)
99c5d87 is described below

commit 99c5d878bcf3203875dac066a3a7350c2b533fe8
Author: Sven Lange-Last <[email protected]>
AuthorDate: Thu Jun 7 21:17:51 2018 +0200

    Relax connection retry in invoker (#3731)
    
    * In the past, sleep time between connection retries has been 100 ms. This 
has been lowered to 10 ms with #3710. On a loaded invoker, 50 ms makes more 
sense.
    * Reduce log volume on loaded invoker.
---
 common/scala/src/main/scala/whisk/core/containerpool/HttpUtils.scala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/common/scala/src/main/scala/whisk/core/containerpool/HttpUtils.scala 
b/common/scala/src/main/scala/whisk/core/containerpool/HttpUtils.scala
index 07c6fc7..d391182 100644
--- a/common/scala/src/main/scala/whisk/core/containerpool/HttpUtils.scala
+++ b/common/scala/src/main/scala/whisk/core/containerpool/HttpUtils.scala
@@ -126,9 +126,8 @@ protected[core] class HttpUtils(hostname: String, timeout: 
FiniteDuration, maxRe
     } match {
       case Success(response) => response
       case Failure(t: RetryableConnectionError) if retry =>
-        val sleepTime = 10.milliseconds
+        val sleepTime = 50.milliseconds
         if (timeout > Duration.Zero) {
-          logging.info(this, s"POST failed with ${t} - retrying after sleeping 
${sleepTime}.")
           Thread.sleep(sleepTime.toMillis)
           val newTimeout = timeout - sleepTime
           execute(request, newTimeout, retry = true)

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to