mirror of https://github.com/apache/druid.git
upgrade jetty and workaround for half open connection
Upgrade jetty and set acceptor priority delta to -1 to give priority to servicing connections already accepted rather than opening new connections.
This commit is contained in:
parent
296b9236fd
commit
8cecb00aa9
8
pom.xml
8
pom.xml
|
@ -324,22 +324,22 @@
|
|||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-server</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlet</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlets</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-proxy</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>joda-time</groupId>
|
||||
|
|
|
@ -158,6 +158,9 @@ public class JettyServerModule extends JerseyServletModule
|
|||
ServerConnector connector = new ServerConnector(server);
|
||||
connector.setPort(node.getPort());
|
||||
connector.setIdleTimeout(Ints.checkedCast(config.getMaxIdleTime().toStandardDuration().getMillis()));
|
||||
// workaround suggested in -
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=435322#c66 for jetty half open connection issues during failovers
|
||||
connector.setAcceptorPriorityDelta(-1);
|
||||
|
||||
server.setConnectors(new Connector[]{connector});
|
||||
|
||||
|
|
Loading…
Reference in New Issue