Skip to content

Commit

Permalink
Reword note on tmpfs (elastic#95974) (elastic#95991)
Browse files Browse the repository at this point in the history
There's no need to talk about unwelcome behaviour or power outages here,
and it caused at least one user some concern. This commit clarifies the
message.

Relates elastic#95166
  • Loading branch information
DaveCTurner authored May 10, 2023
1 parent 78790f1 commit 4c43eb8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/reference/setup/sysconfig/executable-jna-tmpdir.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ temporary files by setting the `LIBFFI_TMPDIR` environment variable. Future
versions of {es} may need additional configuration, so you should prefer to set
`ES_TMPDIR` wherever possible.

NOTE: {es} does not clear out the `/tmp` directory, as this could be an
unwelcome behavior in the event of a power outage or an Out of Memory error.
Instead, it's expected that temporary directories are cleaned out automatically
by the system on events such as a reboot. This is the behavior with the Linux
link:https://www.kernel.org/doc/html/latest/filesystems/tmpfs.html[tmpfs]
file system, for example.
NOTE: {es} does not remove its temporary directory. You should remove leftover
temporary directories while {es} is not running. It is best to do this
automatically, for instance on each reboot. If you are running on Linux, you
can achieve this by using the
link:https://www.kernel.org/doc/html/latest/filesystems/tmpfs.html[tmpfs] file
system.

0 comments on commit 4c43eb8

Please sign in to comment.