delete-desired-balance.asciidoc 1.1 KB

123456789101112131415161718192021222324
  1. [[delete-desired-balance]]
  2. === Reset desired balance API
  3. ++++
  4. <titleabbrev>Reset desired balance</titleabbrev>
  5. ++++
  6. NOTE: {cloud-only}
  7. Discards the current desired balance and computes a new desired balance starting from the current allocation of shards.
  8. This can sometimes help {es} find a desired balance which needs fewer shard movements to achieve, especially if the
  9. cluster has experienced changes so substantial that the current desired balance is no longer optimal without {es} having
  10. detected that the current desired balance will take more shard movements to achieve than needed. However, this API
  11. imposes a heavy load on the elected master node and may not always have the expected effect. Calling this API should
  12. never be necessary. Consider instead <<shards-rebalancing-heuristics,increasing the value of
  13. `cluster.routing.allocation.balance.threshold`>> to avoid excessive shard movements.
  14. [[delete-desired-balance-request]]
  15. ==== {api-request-title}
  16. [source,console]
  17. --------------------------------------------------
  18. DELETE /_internal/desired_balance
  19. --------------------------------------------------
  20. // TEST[skip:Can't reliably test desired balance]