|
@@ -68,6 +68,7 @@ public class ThreadPool extends AbstractComponent implements Scheduler, Closeabl
|
|
|
public static final String GENERIC = "generic";
|
|
|
public static final String LISTENER = "listener";
|
|
|
public static final String GET = "get";
|
|
|
+ public static final String ANALYZE = "analyze";
|
|
|
public static final String INDEX = "index";
|
|
|
public static final String BULK = "bulk";
|
|
|
public static final String SEARCH = "search";
|
|
@@ -124,6 +125,7 @@ public class ThreadPool extends AbstractComponent implements Scheduler, Closeabl
|
|
|
map.put(Names.GENERIC, ThreadPoolType.SCALING);
|
|
|
map.put(Names.LISTENER, ThreadPoolType.FIXED);
|
|
|
map.put(Names.GET, ThreadPoolType.FIXED);
|
|
|
+ map.put(Names.ANALYZE, ThreadPoolType.FIXED);
|
|
|
map.put(Names.INDEX, ThreadPoolType.FIXED);
|
|
|
map.put(Names.BULK, ThreadPoolType.FIXED);
|
|
|
map.put(Names.SEARCH, ThreadPoolType.FIXED_AUTO_QUEUE_SIZE);
|
|
@@ -173,6 +175,7 @@ public class ThreadPool extends AbstractComponent implements Scheduler, Closeabl
|
|
|
builders.put(Names.INDEX, new FixedExecutorBuilder(settings, Names.INDEX, availableProcessors, 200));
|
|
|
builders.put(Names.BULK, new FixedExecutorBuilder(settings, Names.BULK, availableProcessors, 200)); // now that we reuse bulk for index/delete ops
|
|
|
builders.put(Names.GET, new FixedExecutorBuilder(settings, Names.GET, availableProcessors, 1000));
|
|
|
+ builders.put(Names.ANALYZE, new FixedExecutorBuilder(settings, Names.ANALYZE, 1, 16));
|
|
|
builders.put(Names.SEARCH, new AutoQueueAdjustingExecutorBuilder(settings,
|
|
|
Names.SEARCH, searchThreadPoolSize(availableProcessors), 1000, 1000, 1000, 2000));
|
|
|
builders.put(Names.MANAGEMENT, new ScalingExecutorBuilder(Names.MANAGEMENT, 1, 5, TimeValue.timeValueMinutes(5)));
|