bdoyle0182 commented on code in PR #130:
URL: 
https://github.com/apache/openwhisk-runtime-java/pull/130#discussion_r963980315


##########
core/java8/proxy/src/main/java/org/apache/openwhisk/runtime/java/action/Proxy.java:
##########
@@ -48,7 +51,20 @@ public Proxy(int port) throws IOException {
 
         this.server.createContext("/init", new InitHandler());
         this.server.createContext("/run", new RunHandler());
-        this.server.setExecutor(null); // creates a default executor
+
+        if (Boolean.parseBoolean(System.getenv("__OW_ALLOW_CONCURRENT"))) {
+            ThreadPoolExecutor executor = new ThreadPoolExecutor(
+                    10,                  // Core size.
+                    25,              // Max size.

Review Comment:
   It would be a much larger change for the system to pass in the configured 
action limit as a part of the payload on the init request (and not every 
language would need the value so the system would need special logic per 
language for this). I think leaving it unbounded for now is probably the 
easiest way to get the initial working capability and can be optimized later if 
needed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to