disk-usage-exceeded.asciidoc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. [[disk-usage-exceeded]]
  2. === Error: disk usage exceeded flood-stage watermark, index has read-only-allow-delete block
  3. This error indicates a data node is critically low on disk space and has reached
  4. the <<cluster-routing-flood-stage,flood-stage disk usage watermark>>. To prevent
  5. a full disk, when a node reaches this watermark, {es} blocks writes to any index
  6. with a shard on the node. If the block affects related system indices, {kib} and
  7. other {stack} features may become unavailable.
  8. {es} will automatically remove the write block when the affected node's disk
  9. usage goes below the <<cluster-routing-watermark-high,high disk watermark>>. To
  10. achieve this, {es} automatically moves some of the affected node's shards to
  11. other nodes in the same data tier.
  12. To verify that shards are moving off the affected node, use the <<cat-shards,cat
  13. shards API>>.
  14. [source,console]
  15. ----
  16. GET _cat/shards?v=true
  17. ----
  18. If shards remain on the node, use the <<cluster-allocation-explain,cluster
  19. allocation explanation API>> to get an explanation for their allocation status.
  20. [source,console]
  21. ----
  22. GET _cluster/allocation/explain
  23. {
  24. "index": "my-index",
  25. "shard": 0,
  26. "primary": false,
  27. "current_node": "my-node"
  28. }
  29. ----
  30. // TEST[s/^/PUT my-index\n/]
  31. // TEST[s/"primary": false,/"primary": false/]
  32. // TEST[s/"current_node": "my-node"//]
  33. To immediately restore write operations, you can temporarily increase the disk
  34. watermarks and remove the write block.
  35. [source,console]
  36. ----
  37. PUT _cluster/settings
  38. {
  39. "persistent": {
  40. "cluster.routing.allocation.disk.watermark.low": "90%",
  41. "cluster.routing.allocation.disk.watermark.high": "95%",
  42. "cluster.routing.allocation.disk.watermark.flood_stage": "97%"
  43. }
  44. }
  45. PUT */_settings?expand_wildcards=all
  46. {
  47. "index.blocks.read_only_allow_delete": null
  48. }
  49. ----
  50. // TEST[s/^/PUT my-index\n/]
  51. As a long-term solution, we recommend you add nodes to the affected data tiers
  52. or upgrade existing nodes to increase disk space. To free up additional disk
  53. space, you can delete unneeded indices using the <<indices-delete-index,delete
  54. index API>>.
  55. [source,console]
  56. ----
  57. DELETE my-index
  58. ----
  59. // TEST[s/^/PUT my-index\n/]
  60. When a long-term solution is in place, reset or reconfigure the disk watermarks.
  61. [source,console]
  62. ----
  63. PUT _cluster/settings
  64. {
  65. "persistent": {
  66. "cluster.routing.allocation.disk.watermark.low": null,
  67. "cluster.routing.allocation.disk.watermark.high": null,
  68. "cluster.routing.allocation.disk.watermark.flood_stage": null
  69. }
  70. }
  71. ----