Module org.elasticsearch.server
Package org.elasticsearch.index.engine
Class ThreadPoolMergeExecutorService
java.lang.Object
org.elasticsearch.index.engine.ThreadPoolMergeExecutorService
- All Implemented Interfaces:
 Closeable,AutoCloseable
- 
Field Summary
FieldsModifier and TypeFieldDescriptionHow frequently we check disk usage (default: 5 seconds).static final Setting<ByteSizeValue> The available disk space headroom below which NO new merges are started.static final Setting<RelativeByteSizeValue> The occupied disk space threshold beyond which NO new merges are started. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanallDone()voidclose()booleanmaybeCreateThreadPoolMergeExecutorService(ThreadPool threadPool, ClusterSettings clusterSettings, NodeEnvironment nodeEnvironment) voidregisterMergeEventListener(MergeEventListener consumer) boolean 
- 
Field Details
- 
INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING
How frequently we check disk usage (default: 5 seconds). - 
INDICES_MERGE_DISK_HIGH_WATERMARK_SETTING
The occupied disk space threshold beyond which NO new merges are started. Conservatively, the estimated temporary disk space required for the to-be-started merge is counted as occupied disk space. Defaults to the routing allocation flood stage limit value (beyond which shards are toggled read-only). - 
INDICES_MERGE_DISK_HIGH_MAX_HEADROOM_SETTING
The available disk space headroom below which NO new merges are started. Conservatively, the estimated temporary disk space required for the to-be-started merge is NOT counted as available disk space. Defaults to the routing allocation flood stage headroom value (below which shards are toggled read-only), unless the merge occupied disk space threshold is specified, in which case the default headroom value here is unset. 
 - 
 - 
Method Details
- 
maybeCreateThreadPoolMergeExecutorService
@Nullable public static ThreadPoolMergeExecutorService maybeCreateThreadPoolMergeExecutorService(ThreadPool threadPool, ClusterSettings clusterSettings, NodeEnvironment nodeEnvironment)  - 
allDone
public boolean allDone() - 
isMergingBlockedDueToInsufficientDiskSpace
public boolean isMergingBlockedDueToInsufficientDiskSpace() - 
usingMaxTargetIORateBytesPerSec
public boolean usingMaxTargetIORateBytesPerSec() - 
registerMergeEventListener
 - 
close
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Throws:
 IOException
 
 -