Class CliIndexerServerModule
java.lang.Object
org.apache.druid.server.initialization.jetty.CliIndexerServerModule
- All Implemented Interfaces:
com.google.inject.Module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(com.google.inject.Binder binder) org.eclipse.jetty.server.ServergetServer(com.google.inject.Injector injector, Lifecycle lifecycle, DruidNode node, ServerConfig config, TLSServerConfig TLSServerConfig) makeAdjustedServerConfig(ServerConfig oldConfig) Adjusts the ServerConfig such that we double the number of configured HTTP threads, with one half allocated using QoS to chat handler requests, and the other half for other requests.
-
Constructor Details
-
CliIndexerServerModule
-
-
Method Details
-
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein interfacecom.google.inject.Module
-
taskIdResponseHeaderFilterHolderBuilder
@Provides public TaskIdResponseHeaderFilterHolder taskIdResponseHeaderFilterHolderBuilder(DataSourceTaskIdHolder taskIdHolder) -
getServer
@Provides public org.eclipse.jetty.server.Server getServer(com.google.inject.Injector injector, Lifecycle lifecycle, DruidNode node, ServerConfig config, TLSServerConfig TLSServerConfig) -
makeAdjustedServerConfig
Adjusts the ServerConfig such that we double the number of configured HTTP threads, with one half allocated using QoS to chat handler requests, and the other half for other requests. 2 dedicated threads are added for lookup listening, which also has a QoS filter applied.
-