disable-shard-alloc.asciidoc 664 B

12345678910111213141516171819
  1. When you shut down a 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 disabling
  6. allocation before shutting down the node:
  7. [source,js]
  8. --------------------------------------------------
  9. PUT _cluster/settings
  10. {
  11. "persistent": {
  12. "cluster.routing.allocation.enable": "none"
  13. }
  14. }
  15. --------------------------------------------------
  16. // CONSOLE
  17. // TEST[skip:indexes don't assign]