jeremiaswerner closed pull request #2951: Increase the number of max open 
requests
URL: https://github.com/apache/incubator-openwhisk/pull/2951
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/common/scala/src/main/resources/application.conf 
b/common/scala/src/main/resources/application.conf
index 683a8041b6..1968e90560 100644
--- a/common/scala/src/main/resources/application.conf
+++ b/common/scala/src/main/resources/application.conf
@@ -9,7 +9,7 @@ akka.http {
 
     host-connection-pool {
         max-connections = 128
-        max-open-requests = 128
+        max-open-requests = 512
     }
 }
 
diff --git 
a/common/scala/src/main/scala/whisk/core/database/CouchDbRestStore.scala 
b/common/scala/src/main/scala/whisk/core/database/CouchDbRestStore.scala
index 298cf09dcd..2127f866f5 100644
--- a/common/scala/src/main/scala/whisk/core/database/CouchDbRestStore.scala
+++ b/common/scala/src/main/scala/whisk/core/database/CouchDbRestStore.scala
@@ -71,7 +71,7 @@ class CouchDbRestStore[DocumentAbstraction <: 
DocumentSerializer](dbProtocol: St
 
   // This the the amount of allowed parallel requests for each entity, before 
batching starts. If there are already maxOpenDbRequests
   // and more documents need to be stored, then all arriving documents will be 
put into batches (if enabled) to avoid a long queue.
-  private val maxOpenDbRequests = 
system.settings.config.getInt("akka.http.host-connection-pool.max-open-requests")
 / 2
+  private val maxOpenDbRequests = 
system.settings.config.getInt("akka.http.host-connection-pool.max-connections") 
/ 2
 
   private val batcher: Batcher[JsObject, Either[ArtifactStoreException, 
DocInfo]] =
     new Batcher(500, maxOpenDbRequests)(put(_)(TransactionId.unknown))


 

----------------------------------------------------------------
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