allocation.asciidoc 909 B

1234567891011121314151617181920212223242526
  1. [[cat-allocation]]
  2. === cat allocation
  3. `allocation` provides a snapshot of how many shards are allocated to each data node
  4. and how much disk space they are using.
  5. [source,js]
  6. --------------------------------------------------
  7. GET /_cat/allocation?v
  8. --------------------------------------------------
  9. // CONSOLE
  10. // TEST[s/^/PUT test\n{"settings": {"number_of_replicas": 0}}\n/]
  11. Might respond with:
  12. [source,txt]
  13. --------------------------------------------------
  14. shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
  15. 1 260b 47.3gb 43.4gb 100.7gb 46 127.0.0.1 127.0.0.1 CSUXak2
  16. --------------------------------------------------
  17. // TESTRESPONSE[s/\d+(\.\d+)?[tgmk]?b/\\d+(\\.\\d+)?[tgmk]?b/ s/46/\\d+/]
  18. // TESTRESPONSE[s/CSUXak2/.+/ non_json]
  19. Here we can see that the single shard created has been allocated to the single
  20. node available.