disable-shard-alloc.asciidoc 734 B

12345678910111213141516171819
  1. When you shut down a data node, the allocation process waits for
  2. `index.unassigned.node_left.delayed_timeout` (by default, one minute) before
  3. starting to replicate the shards on that node to other nodes in the cluster,
  4. which can involve a lot of I/O. Since the node is shortly going to be
  5. restarted, this I/O is unnecessary. You can avoid racing the clock by
  6. <<cluster-routing-allocation-enable,disabling allocation>> of replicas before
  7. shutting down <<data-node,data nodes>>:
  8. [source,console]
  9. --------------------------------------------------
  10. PUT _cluster/settings
  11. {
  12. "persistent": {
  13. "cluster.routing.allocation.enable": "primaries"
  14. }
  15. }
  16. --------------------------------------------------
  17. // TEST[skip:indexes don't assign]