quota-aware-fs.asciidoc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [[quota-aware-fs]]
  2. === Quota-aware Filesystem Plugin
  3. The Quota-aware Filesystem plugin adds an interface for telling
  4. Elasticsearch the disk-quota limits under which it is operating.
  5. :plugin_name: quota-aware-fs
  6. include::install_remove.asciidoc[]
  7. [[quota-aware-fs-usage]]
  8. ==== Passing disk quota information to Elasticsearch
  9. {es} considers the available disk space on a node before deciding whether
  10. to allocate new shards to that node or to actively relocate shards away from that node.
  11. However, while the JVM has support for reporting a filesystem's total space and available
  12. space, it has no knowledge of any quota limits imposed on the user under which {es} is
  13. running. Consequently, the {es} mechanisms for handling low disk space situations cannot
  14. function. To work around this situation, this plugin provides a mechanism for supplying quota-ware
  15. total and available amounts of disk space.
  16. To use the plugin, install it on all nodes and restart them. You must configure the plugin
  17. by supplying the `es.fs.quota.file` {ref}/jvm-options.html[JVM system property] on startup. This
  18. property specifies a URI to a properties file, which contains the total and available
  19. amounts.
  20. NOTE: {es} will not start successfully if you install the `quota-aware-fs` plugin,
  21. but you do not supply the `es.fs.quota.file` system property at startup.
  22. [source,text]
  23. ----
  24. -Des.fs.quota.file=file:///path/to/some.properties
  25. ----
  26. The properties file must contain the keys `total` and `remaining`, both of which contain the respective
  27. number in bytes. You are responsible for writing this file with the correct values, and keeping the
  28. values up-to-date. {es} will poll this file regularly to pick up any changes.
  29. [source,properties]
  30. ----
  31. total=976490576
  32. remaining=376785728
  33. ----