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

Backport of drivers: move executor process out of v1 task cgroup after process starts into release/1.9.x #24386

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #24340 to be assessed for backporting due to the inclusion of the label backport/1.9.x.

The below text is copied from the body of the original PR.


This PR changes the behavior of the raw exec task driver on old cgroups v1
systems such that the executor process is no longer a member of the cgroups
created for the task. Now, the executor process is placed into those
cgroups and starts the task child process (just as before), but now then
exits those cgroups and exists in the nomad parent cgroup. This change
makes the behavior sort of similar to cgroups v2 systems, where we never
have the executor enter the task cgroup to begin with (because we can
directly clone(3) the task process into it).

Fixes #23951


Overview of commits

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/rawexec-cgroups-v1-executor-cgroup/miserably-related-quail branch from c8f7893 to 8c5e607 Compare November 7, 2024 13:32
@shoenig shoenig merged commit acf4197 into release/1.9.x Nov 7, 2024
19 of 20 checks passed
@shoenig shoenig deleted the backport/rawexec-cgroups-v1-executor-cgroup/miserably-related-quail branch November 7, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants