Module org.elasticsearch.server
Class ShardsAvailabilityHealthIndicatorService
java.lang.Object
org.elasticsearch.cluster.routing.allocation.ShardsAvailabilityHealthIndicatorService
- All Implemented Interfaces:
HealthIndicatorService
public class ShardsAvailabilityHealthIndicatorService
extends Object
implements HealthIndicatorService
This indicator reports health for shards.
Indicator will report: * RED when one or more primary shards are not available * YELLOW when one or more replica shards are not available * GREEN otherwise
Each shard needs to be available and replicated in order to guarantee high availability and prevent data loses. Shards allocated on nodes scheduled for restart (using nodes shutdown API) will not degrade this indicator health.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Diagnosis.Definition
static final Diagnosis.Definition
static final Diagnosis.Definition
static final Map<String,
Diagnosis.Definition> static final Diagnosis.Definition
static final Diagnosis.Definition
static final Map<String,
Diagnosis.Definition> static final Diagnosis.Definition
static final Map<String,
Diagnosis.Definition> static final Map<String,
Diagnosis.Definition> static final Diagnosis.Definition
static final Map<String,
Diagnosis.Definition> static final Diagnosis.Definition
static final Map<String,
Diagnosis.Definition> static final Diagnosis.Definition
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
ConstructorDescriptionShardsAvailabilityHealthIndicatorService
(ClusterService clusterService, AllocationService allocationService) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.health.HealthIndicatorService
createIndicator
-
Field Details
-
NAME
- See Also:
-
RESTORE_FROM_SNAPSHOT_ACTION_GUIDE
- See Also:
-
ACTION_RESTORE_FROM_SNAPSHOT
-
DIAGNOSE_SHARDS_ACTION_GUIDE
- See Also:
-
ACTION_CHECK_ALLOCATION_EXPLAIN_API
-
ENABLE_INDEX_ALLOCATION_GUIDE
- See Also:
-
ACTION_ENABLE_INDEX_ROUTING_ALLOCATION
-
ENABLE_CLUSTER_ALLOCATION_ACTION_GUIDE
- See Also:
-
ACTION_ENABLE_CLUSTER_ROUTING_ALLOCATION
-
ENABLE_TIER_ACTION_GUIDE
- See Also:
-
ACTION_ENABLE_TIERS_LOOKUP
-
INCREASE_SHARD_LIMIT_ACTION_GUIDE
- See Also:
-
ACTION_INCREASE_SHARD_LIMIT_INDEX_SETTING
-
ACTION_INCREASE_SHARD_LIMIT_INDEX_SETTING_LOOKUP
public static final Map<String,Diagnosis.Definition> ACTION_INCREASE_SHARD_LIMIT_INDEX_SETTING_LOOKUP -
INCREASE_CLUSTER_SHARD_LIMIT_ACTION_GUIDE
- See Also:
-
ACTION_INCREASE_SHARD_LIMIT_CLUSTER_SETTING
-
ACTION_INCREASE_SHARD_LIMIT_CLUSTER_SETTING_LOOKUP
public static final Map<String,Diagnosis.Definition> ACTION_INCREASE_SHARD_LIMIT_CLUSTER_SETTING_LOOKUP -
MIGRATE_TO_TIERS_ACTION_GUIDE
- See Also:
-
ACTION_MIGRATE_TIERS_AWAY_FROM_REQUIRE_DATA
-
ACTION_MIGRATE_TIERS_AWAY_FROM_REQUIRE_DATA_LOOKUP
public static final Map<String,Diagnosis.Definition> ACTION_MIGRATE_TIERS_AWAY_FROM_REQUIRE_DATA_LOOKUP -
ACTION_MIGRATE_TIERS_AWAY_FROM_INCLUDE_DATA
-
ACTION_MIGRATE_TIERS_AWAY_FROM_INCLUDE_DATA_LOOKUP
public static final Map<String,Diagnosis.Definition> ACTION_MIGRATE_TIERS_AWAY_FROM_INCLUDE_DATA_LOOKUP -
TIER_CAPACITY_ACTION_GUIDE
- See Also:
-
ACTION_INCREASE_NODE_CAPACITY
-
ACTION_INCREASE_TIER_CAPACITY_LOOKUP
-
-
Constructor Details
-
ShardsAvailabilityHealthIndicatorService
public ShardsAvailabilityHealthIndicatorService(ClusterService clusterService, AllocationService allocationService)
-
-
Method Details
-
name
- Specified by:
name
in interfaceHealthIndicatorService
-
calculate
- Specified by:
calculate
in interfaceHealthIndicatorService
-