You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2021/04/30 19:07:54 UTC
[tinkerpop] 01/01: Default threadPoolWorker to 2
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch travis-fix
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit d41e4c493a5d13765ae88e2df2582d0c27faea41
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Fri Apr 30 15:06:14 2021 -0400
Default threadPoolWorker to 2
Given that this is also the general scheduled executorservice 2 seems like the right number for this. tasks scheduled here should be all non-blocking. CTR
---
.../main/java/org/apache/tinkerpop/gremlin/server/Settings.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/Settings.java b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/Settings.java
index 149372f..f3bc273 100644
--- a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/Settings.java
+++ b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/Settings.java
@@ -83,10 +83,11 @@ public class Settings {
public int port = 8182;
/**
- * Size of the worker thread pool. Defaults to 1 and should generally not exceed 2 * number of cores. A
- * worker thread performs non-blocking read and write for one or more Channels in a non-blocking mode.
+ * Size of the worker thread pool. Defaults to 2 and should generally not exceed 2 * number of cores. A
+ * worker thread performs non-blocking read and write for one or more Channels in a non-blocking mode and other
+ * non-blocking tasks that may occur on a schedule..
*/
- public int threadPoolWorker = 1;
+ public int threadPoolWorker = 2;
/**
* detect if the OS is linux, then use epoll instead of NIO which causes less GC