Skip to content

Commit

Permalink
Improve CANNOT_REBALANCE_CAN_ALLOCATE explanation (elastic#104904) (e…
Browse files Browse the repository at this point in the history
…lastic#104910)

Clarify that in this situation there is a rebalancing move that would
improve the cluster balance, but there's some reason why rebalancing is
not happening. Also points at the `can_rebalance_cluster_decisions` as
well as the node-by-node decisions since the action needed could be
described in either place.
  • Loading branch information
DaveCTurner authored Jan 30, 2024
1 parent 4dc7d46 commit 0c44459
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/104904.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 104904
summary: Improve `CANNOT_REBALANCE_CAN_ALLOCATE` explanation
area: Allocation
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ public static final class Rebalance {
activities. The shard will be rebalanced when those activities finish. Please wait.""";

public static final String CANNOT_REBALANCE_CAN_ALLOCATE = """
Elasticsearch is allowed to allocate this shard to another node but it isn't allowed to rebalance the shard there. If you \
expect this shard to be rebalanced to another node, find this node in the node-by-node explanation and address the reasons \
which prevent Elasticsearch from rebalancing this shard there.""";
Elasticsearch is allowed to allocate this shard on another node, and there is at least one node to which it could move this \
shard that would improve the overall cluster balance, but it isn't allowed to rebalance this shard there. If you expect this \
shard to be rebalanced to another node, check the cluster-wide rebalancing decisions and address any reasons preventing \
Elasticsearch from rebalancing shards within the cluster, and then find the expected node in the node-by-node explanation and \
address the reasons which prevent Elasticsearch from moving this shard there.""";

public static final String CANNOT_REBALANCE_CANNOT_ALLOCATE = """
Elasticsearch is not allowed to allocate or rebalance this shard to another node. If you expect this shard to be rebalanced to \
Expand Down

0 comments on commit 0c44459

Please sign in to comment.