From 60dbdcebac06bee9ff3ae4442c68a5252d4b469a Mon Sep 17 00:00:00 2001 From: fjy Date: Sat, 16 Nov 2013 11:09:42 -0800 Subject: [PATCH] we need to explicitly set the connector thread pool based on the default number of threads in our config to accomodate how jetty 8 works --- .../java/io/druid/server/initialization/JettyServerModule.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/io/druid/server/initialization/JettyServerModule.java b/server/src/main/java/io/druid/server/initialization/JettyServerModule.java index 246645dac0c..8f035f038b1 100644 --- a/server/src/main/java/io/druid/server/initialization/JettyServerModule.java +++ b/server/src/main/java/io/druid/server/initialization/JettyServerModule.java @@ -161,6 +161,7 @@ public class JettyServerModule extends JerseyServletModule connector.setPort(node.getPort()); connector.setMaxIdleTime(Ints.checkedCast(config.getMaxIdleTime().toStandardDuration().getMillis())); connector.setStatsOn(true); + connector.setAcceptors(config.getNumThreads()); server.setConnectors(new Connector[]{connector});