es-tmpdir.asciidoc 1.2 KB

12345678910111213141516171819202122232425
  1. [[es-tmpdir]]
  2. [discrete]
  3. ==== Temporary directory settings
  4. By default, {es} uses a private temporary directory that the startup
  5. script creates immediately below the system temporary directory.
  6. On some Linux distributions, a system utility will clean files and directories
  7. from `/tmp` if they have not been recently accessed. This behavior can lead to
  8. the private temporary directory being removed while {es} is running if
  9. features that require the temporary directory are not used for a long time.
  10. Removing the private temporary directory causes problems if a feature that
  11. requires this directory is subsequently used.
  12. If you install {es} using the `.deb` or `.rpm` packages and run it
  13. under `systemd`, the private temporary directory that {es} uses
  14. is excluded from periodic cleanup.
  15. If you intend to run the `.tar.gz` distribution on Linux or MacOS for
  16. an extended period, consider creating a dedicated temporary
  17. directory for {es} that is not under a path that will have old files
  18. and directories cleaned from it. This directory should have permissions set
  19. so that only the user that {es} runs as can access it. Then, set the
  20. `$ES_TMPDIR` environment variable to point to this directory before starting
  21. {es}.