Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ACCUMULO-834 adjust threadpool size quickly: storm events (like root …

…tablet moves) cause lots of connections on large clusters

git-svn-id: https://svn.apache.org/repos/asf/accumulo/trunk@1410025 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 8ef22fc11c8f82da696e2170dc155c39836f3bf2 1 parent cca13b7
Eric C. Newton authored
View
2  server/src/main/java/org/apache/accumulo/server/util/TServerUtils.java
@@ -192,7 +192,7 @@ public static ServerPort startHsHaServer(int port, TProcessor processor, final S
@Override
public void run() {
if (pool.getCorePoolSize() <= pool.getActiveCount()) {
- int larger = pool.getCorePoolSize() + 2;
+ int larger = pool.getCorePoolSize() + Math.min(pool.getQueue().size(), 2);
log.info("Increasing server thread pool size on " + serverName + " to " + larger);
pool.setMaximumPoolSize(larger);
pool.setCorePoolSize(larger);
Please sign in to comment.
Something went wrong with that request. Please try again.