disable-shard-alloc.asciidoc 527 B

1234567891011121314151617
  1. When you shut down a node, the allocation process waits for one minute
  2. before starting to replicate the shards on that node to other nodes
  3. in the cluster, causing a lot of wasted I/O. You can avoid racing the clock
  4. by disabling allocation before shutting down the node:
  5. [source,js]
  6. --------------------------------------------------
  7. PUT _cluster/settings
  8. {
  9. "persistent": {
  10. "cluster.routing.allocation.enable": "none"
  11. }
  12. }
  13. --------------------------------------------------
  14. // CONSOLE
  15. // TEST[skip:indexes don't assign]