mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-09 06:25:07 +00:00
c28c3422bb
* [DOCS] Combining important config settings into a single page (#63849) * Combining important config settings into a single page. * Updating ids for two pages causing link errors and implementing redirects. * Updating links to use IDs instead of xrefs.
26 lines
1.2 KiB
Plaintext
26 lines
1.2 KiB
Plaintext
[[es-tmpdir]]
|
|
[discrete]
|
|
=== Temporary directory settings
|
|
|
|
By default, {es} uses a private temporary directory that the startup
|
|
script creates immediately below the system temporary directory.
|
|
|
|
On some Linux distributions, a system utility will clean files and directories
|
|
from `/tmp` if they have not been recently accessed. This behavior can lead to
|
|
the private temporary directory being removed while {es} is running if
|
|
features that require the temporary directory are not used for a long time.
|
|
Removing the private temporary directory causes problems if a feature that
|
|
requires this directory is subsequently used.
|
|
|
|
If you install {es} using the `.deb` or `.rpm` packages and run it
|
|
under `systemd`, the private temporary directory that {es} uses
|
|
is excluded from periodic cleanup.
|
|
|
|
If you intend to run the `.tar.gz` distribution on Linux or MacOS for
|
|
an extended period, consider creating a dedicated temporary
|
|
directory for {es} that is not under a path that will have old files
|
|
and directories cleaned from it. This directory should have permissions set
|
|
so that only the user that {es} runs as can access it. Then, set the
|
|
`$ES_TMPDIR` environment variable to point to this directory before starting
|
|
{es}.
|