sysconfig.asciidoc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [[system-config]]
  2. == Important System Configuration
  3. Ideally, Elasticsearch should run alone on a server and use all of the
  4. resources available to it. In order to do so, you need to configure your
  5. operating system to allow the user running Elasticsearch to access more
  6. resources than allowed by default.
  7. The following settings *must* be considered before going to production:
  8. * <<setup-configuration-memory,Disable swapping>>
  9. * <<file-descriptors,Increase file descriptors>>
  10. * <<vm-max-map-count,Ensure sufficient virtual memory>>
  11. * <<max-number-of-threads,Ensure sufficient threads>>
  12. * <<networkaddress-cache-ttl,JVM DNS cache settings>>
  13. * <<executable-jna-tmpdir,Temporary directory not mounted with `noexec`>>
  14. [[dev-vs-prod]]
  15. [float]
  16. === Development mode vs production mode
  17. By default, Elasticsearch assumes that you are working in development mode.
  18. If any of the above settings are not configured correctly, a warning will be
  19. written to the log file, but you will be able to start and run your
  20. Elasticsearch node.
  21. As soon as you configure a network setting like `network.host`, Elasticsearch
  22. assumes that you are moving to production and will upgrade the above warnings
  23. to exceptions. These exceptions will prevent your Elasticsearch node from
  24. starting. This is an important safety measure to ensure that you will not
  25. lose data because of a malconfigured server.
  26. include::sysconfig/configuring.asciidoc[]
  27. include::sysconfig/swap.asciidoc[]
  28. include::sysconfig/file-descriptors.asciidoc[]
  29. include::sysconfig/virtual-memory.asciidoc[]
  30. include::sysconfig/threads.asciidoc[]
  31. include::sysconfig/dns-cache.asciidoc[]
  32. include::sysconfig/executable-jna-tmpdir.asciidoc[]