Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to set ES_TMPDIR in the service file #93121

Merged

Conversation

DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Jan 20, 2023

Today we suggest that users set ES_TMPDIR using export, which only works if you're running things directly from the shell. Yet most users encountering ES_TMPDIR problems seem to on RHEL and trying to run things via systemd, for whom the export suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the systemd service file to set the appropriate environment variable.

Relates #80651

Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates elastic#80651
@DaveCTurner DaveCTurner added >docs General docs changes :Core/Infra/Core Core issues without another label v8.6.1 v8.7.0 v7.17.9 labels Jan 20, 2023
@github-actions
Copy link

Documentation preview:

@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team Team:Docs Meta label for docs team labels Jan 20, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@kilfoyle kilfoyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@DaveCTurner DaveCTurner added the auto-backport-and-merge Automatically create backport pull requests and merge when ready label Jan 23, 2023
@DaveCTurner DaveCTurner merged commit a4de6bd into elastic:main Jan 23, 2023
@DaveCTurner DaveCTurner deleted the 2023-01-20-ES_TMPDIR-unit-file branch January 23, 2023 08:30
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates elastic#80651
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates elastic#80651
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.6
7.17

elasticsearchmachine pushed a commit that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates #80651
elasticsearchmachine pushed a commit that referenced this pull request Jan 23, 2023
Today we suggest that users set `ES_TMPDIR` using `export`, which only
works if you're running things directly from the shell. Yet most users
encountering `ES_TMPDIR` problems seem to on RHEL and trying to run
things via `systemd`, for whom the `export` suggestion doesn't work.

This commit adds to the docs a suggestion of how to adjust the `systemd`
service file to set the appropriate environment variable.

Relates #80651
rjernst added a commit that referenced this pull request Jan 24, 2023
The systemd unit file is part of the Elasticsearch package and should
not be edited. Instead, we recommend creating a service override file.
This commit tweaks the docs for setting tmp dir with systemd to use the
override file instead of editing the unit file.

relates #93121
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Jan 24, 2023
…c#93211)

The systemd unit file is part of the Elasticsearch package and should
not be edited. Instead, we recommend creating a service override file.
This commit tweaks the docs for setting tmp dir with systemd to use the
override file instead of editing the unit file.

relates elastic#93121
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Jan 24, 2023
…c#93211)

The systemd unit file is part of the Elasticsearch package and should
not be edited. Instead, we recommend creating a service override file.
This commit tweaks the docs for setting tmp dir with systemd to use the
override file instead of editing the unit file.

relates elastic#93121
elasticsearchmachine pushed a commit that referenced this pull request Jan 24, 2023
#93214)

The systemd unit file is part of the Elasticsearch package and should
not be edited. Instead, we recommend creating a service override file.
This commit tweaks the docs for setting tmp dir with systemd to use the
override file instead of editing the unit file.

relates #93121
elasticsearchmachine pushed a commit that referenced this pull request Jan 24, 2023
#93215)

The systemd unit file is part of the Elasticsearch package and should
not be edited. Instead, we recommend creating a service override file.
This commit tweaks the docs for setting tmp dir with systemd to use the
override file instead of editing the unit file.

relates #93121
jpountz pushed a commit to jpountz/elasticsearch that referenced this pull request Feb 2, 2023
…c#93211)

The systemd unit file is part of the Elasticsearch package and should
not be edited. Instead, we recommend creating a service override file.
This commit tweaks the docs for setting tmp dir with systemd to use the
override file instead of editing the unit file.

relates elastic#93121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport-and-merge Automatically create backport pull requests and merge when ready :Core/Infra/Core Core issues without another label >docs General docs changes Team:Core/Infra Meta label for core/infra team Team:Docs Meta label for docs team v7.17.9 v8.6.1 v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants