Class RecoverySettings
- java.lang.Object
-
- org.elasticsearch.indices.recovery.RecoverySettings
-
public class RecoverySettings extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ByteSizeValueDEFAULT_CHUNK_SIZEstatic Setting<TimeValue>INDICES_RECOVERY_ACTIVITY_TIMEOUT_SETTINGrecoveries that don't show any activity for more then this interval will be failed.static Setting<TimeValue>INDICES_RECOVERY_INTERNAL_ACTION_TIMEOUT_SETTINGtimeout value to use for requests made as part of the recovery processstatic Setting<TimeValue>INDICES_RECOVERY_INTERNAL_LONG_ACTION_TIMEOUT_SETTINGtimeout value to use for requests made as part of the recovery process that are expected to take long time.static Setting<ByteSizeValue>INDICES_RECOVERY_MAX_BYTES_PER_SEC_SETTINGstatic Setting<TimeValue>INDICES_RECOVERY_RETRY_DELAY_NETWORK_SETTINGhow long to wait before retrying after network related issuesstatic Setting<TimeValue>INDICES_RECOVERY_RETRY_DELAY_STATE_SYNC_SETTINGhow long to wait before retrying after issues cause by cluster state syncing between nodes i.e., local node is not yet known on remote node, remote shard not yet started etc.
-
Constructor Summary
Constructors Constructor Description RecoverySettings(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeValueactivityTimeout()ByteSizeValuegetChunkSize()TimeValueinternalActionLongTimeout()TimeValueinternalActionTimeout()org.apache.lucene.store.RateLimiterrateLimiter()TimeValueretryDelayNetwork()TimeValueretryDelayStateSync()voidsetActivityTimeout(TimeValue activityTimeout)voidsetChunkSize(ByteSizeValue chunkSize)voidsetInternalActionLongTimeout(TimeValue internalActionLongTimeout)voidsetInternalActionTimeout(TimeValue internalActionTimeout)voidsetRetryDelayNetwork(TimeValue retryDelayNetwork)voidsetRetryDelayStateSync(TimeValue retryDelayStateSync)
-
-
-
Field Detail
-
INDICES_RECOVERY_MAX_BYTES_PER_SEC_SETTING
public static final Setting<ByteSizeValue> INDICES_RECOVERY_MAX_BYTES_PER_SEC_SETTING
-
INDICES_RECOVERY_RETRY_DELAY_STATE_SYNC_SETTING
public static final Setting<TimeValue> INDICES_RECOVERY_RETRY_DELAY_STATE_SYNC_SETTING
how long to wait before retrying after issues cause by cluster state syncing between nodes i.e., local node is not yet known on remote node, remote shard not yet started etc.
-
INDICES_RECOVERY_RETRY_DELAY_NETWORK_SETTING
public static final Setting<TimeValue> INDICES_RECOVERY_RETRY_DELAY_NETWORK_SETTING
how long to wait before retrying after network related issues
-
INDICES_RECOVERY_INTERNAL_ACTION_TIMEOUT_SETTING
public static final Setting<TimeValue> INDICES_RECOVERY_INTERNAL_ACTION_TIMEOUT_SETTING
timeout value to use for requests made as part of the recovery process
-
INDICES_RECOVERY_INTERNAL_LONG_ACTION_TIMEOUT_SETTING
public static final Setting<TimeValue> INDICES_RECOVERY_INTERNAL_LONG_ACTION_TIMEOUT_SETTING
timeout value to use for requests made as part of the recovery process that are expected to take long time. defaults to twice `indices.recovery.internal_action_timeout`.
-
INDICES_RECOVERY_ACTIVITY_TIMEOUT_SETTING
public static final Setting<TimeValue> INDICES_RECOVERY_ACTIVITY_TIMEOUT_SETTING
recoveries that don't show any activity for more then this interval will be failed. defaults to `indices.recovery.internal_action_long_timeout`
-
DEFAULT_CHUNK_SIZE
public static final ByteSizeValue DEFAULT_CHUNK_SIZE
-
-
Constructor Detail
-
RecoverySettings
public RecoverySettings(Settings settings, ClusterSettings clusterSettings)
-
-
Method Detail
-
rateLimiter
public org.apache.lucene.store.RateLimiter rateLimiter()
-
retryDelayNetwork
public TimeValue retryDelayNetwork()
-
retryDelayStateSync
public TimeValue retryDelayStateSync()
-
activityTimeout
public TimeValue activityTimeout()
-
internalActionTimeout
public TimeValue internalActionTimeout()
-
internalActionLongTimeout
public TimeValue internalActionLongTimeout()
-
getChunkSize
public ByteSizeValue getChunkSize()
-
setChunkSize
public void setChunkSize(ByteSizeValue chunkSize)
-
setRetryDelayStateSync
public void setRetryDelayStateSync(TimeValue retryDelayStateSync)
-
setRetryDelayNetwork
public void setRetryDelayNetwork(TimeValue retryDelayNetwork)
-
setActivityTimeout
public void setActivityTimeout(TimeValue activityTimeout)
-
setInternalActionTimeout
public void setInternalActionTimeout(TimeValue internalActionTimeout)
-
setInternalActionLongTimeout
public void setInternalActionLongTimeout(TimeValue internalActionLongTimeout)
-
-