mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-15 01:16:09 +00:00
Several files in the REST APIs nav section are included using :leveloffset: tags. This increments headings (h2 -> h3, h3 -> h4, etc.) in those files and removes the :leveloffset: tags. Other supporting changes: * Alphabetizes top-level REST API nav items. * Change 'indices APIs' heading to 'index APIs.' * Changes 'Snapshot lifecycle management' heading to sentence case.
27 lines
909 B
Plaintext
27 lines
909 B
Plaintext
[[cat-allocation]]
|
|
=== cat allocation
|
|
|
|
`allocation` provides a snapshot of how many shards are allocated to each data node
|
|
and how much disk space they are using.
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
GET /_cat/allocation?v
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
// TEST[s/^/PUT test\n{"settings": {"number_of_replicas": 0}}\n/]
|
|
|
|
Might respond with:
|
|
|
|
[source,txt]
|
|
--------------------------------------------------
|
|
shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
|
|
1 260b 47.3gb 43.4gb 100.7gb 46 127.0.0.1 127.0.0.1 CSUXak2
|
|
--------------------------------------------------
|
|
// TESTRESPONSE[s/\d+(\.\d+)?[tgmk]?b/\\d+(\\.\\d+)?[tgmk]?b/ s/46/\\d+/]
|
|
// TESTRESPONSE[s/CSUXak2/.+/ non_json]
|
|
|
|
Here we can see that the single shard created has been allocated to the single
|
|
node available.
|
|
|