| Package | Description |
|---|---|
| org.elasticsearch.cluster | |
| org.elasticsearch.cluster.routing.allocation.decider |
| Modifier and Type | Method and Description |
|---|---|
Map<String,DiskUsage> |
ClusterInfo.getNodeLeastAvailableDiskUsages()
Returns a node id to disk usage mapping for the path that has the least available space on the node.
|
Map<String,DiskUsage> |
ClusterInfo.getNodeMostAvailableDiskUsages()
Returns a node id to disk usage mapping for the path that has the most available space on the node.
|
| Constructor and Description |
|---|
ClusterInfo(Map<String,DiskUsage> leastAvailableSpaceUsage,
Map<String,DiskUsage> mostAvailableSpaceUsage,
Map<String,Long> shardSizes,
Map<ShardRouting,String> routingToDataPath)
Creates a new ClusterInfo instance.
|
ClusterInfo(Map<String,DiskUsage> leastAvailableSpaceUsage,
Map<String,DiskUsage> mostAvailableSpaceUsage,
Map<String,Long> shardSizes,
Map<ShardRouting,String> routingToDataPath)
Creates a new ClusterInfo instance.
|
| Modifier and Type | Method and Description |
|---|---|
DiskUsage |
DiskThresholdDecider.averageUsage(RoutingNode node,
Map<String,DiskUsage> usages)
Returns a
DiskUsage for the RoutingNode using the
average usage of other nodes in the disk usage map. |
| Modifier and Type | Method and Description |
|---|---|
double |
DiskThresholdDecider.freeDiskPercentageAfterShardAssigned(DiskUsage usage,
Long shardSize)
Given the DiskUsage for a node and the size of the shard, return the
percentage of free disk if the shard were to be allocated to the node.
|
| Modifier and Type | Method and Description |
|---|---|
DiskUsage |
DiskThresholdDecider.averageUsage(RoutingNode node,
Map<String,DiskUsage> usages)
Returns a
DiskUsage for the RoutingNode using the
average usage of other nodes in the disk usage map. |
Copyright © 2009–2017. All rights reserved.