file-descriptors.asciidoc 945 B

1234567891011121314151617181920212223
  1. [[file-descriptors]]
  2. === File Descriptors
  3. Elasticsearch uses a lot of file descriptors or file handles. Running out of
  4. file descriptors can be disastrous and will most probably lead to data loss.
  5. Make sure to increase the limit on the number of open files descriptors for
  6. the user running Elasticsearch to 65,536 or higher.
  7. For the `.zip` and `.tar.gz` packages, set <<ulimit,`ulimit -n 65536`>> as
  8. root before starting Elasticsearch, or set `nofile` to `65536` in
  9. <<limits.conf,`/etc/security/limits.conf`>>.
  10. RPM and Debian packages already default the maximum number of file
  11. descriptors to 65536 and do not require further configuration.
  12. You can check the `max_file_descriptors` configured for each node
  13. using the <<cluster-nodes-stats>> API, with:
  14. [source,js]
  15. --------------------------------------------------
  16. GET _nodes/stats/process?filter_path=**.max_file_descriptors
  17. --------------------------------------------------
  18. // CONSOLE