sysconfig.asciidoc 1.7 KB

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