allocation.asciidoc 932 B

12345678910111213141516171819202122232425
  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. 5 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/.+/ _cat]
  19. Here we can see that each node has been allocated a single shard and
  20. that they're all using about the same amount of space.