You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/11/22 14:37:31 UTC
[GitHub] sven-lange-last commented on a change in pull request #2995: At most 10 `docker run` commands are allowed in parallel
sven-lange-last 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_r152582382
##########
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:
Good finding. I'm going to change this.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services