markusthoemmes commented on a change in pull request #2995: At most 10 `docker 
run` commands are allowed in parallel
URL: 
https://github.com/apache/incubator-openwhisk/pull/2995#discussion_r152570534
 
 

 ##########
 File path: 
core/invoker/src/main/scala/whisk/core/containerpool/docker/DockerClient.scala
 ##########
 @@ -75,25 +77,46 @@ class DockerClient(dockerHost: Option[String] = 
None)(executionContext: Executio
     Seq(dockerBin) ++ host
   }
 
+  protected[containerpool] val maxParallelRuns = 10
+  protected[containerpool] val runSemaphore = new Semaphore( /* permits= */ 
maxParallelRuns, /* fair= */ true)
 
 Review comment:
   Can this be only `protected`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to