mirror of https://github.com/apache/druid.git
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
This commit is contained in:
parent
5d7173ac98
commit
60dbdcebac
|
@ -161,6 +161,7 @@ public class JettyServerModule extends JerseyServletModule
|
||||||
connector.setPort(node.getPort());
|
connector.setPort(node.getPort());
|
||||||
connector.setMaxIdleTime(Ints.checkedCast(config.getMaxIdleTime().toStandardDuration().getMillis()));
|
connector.setMaxIdleTime(Ints.checkedCast(config.getMaxIdleTime().toStandardDuration().getMillis()));
|
||||||
connector.setStatsOn(true);
|
connector.setStatsOn(true);
|
||||||
|
connector.setAcceptors(config.getNumThreads());
|
||||||
|
|
||||||
server.setConnectors(new Connector[]{connector});
|
server.setConnectors(new Connector[]{connector});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue