Handle cgroups v2 in OsProbe (#77128)#77306
Merged
elasticsearchmachine merged 4 commits intoelastic:7.xfrom Sep 6, 2021
Merged
Handle cgroups v2 in OsProbe (#77128)#77306elasticsearchmachine merged 4 commits intoelastic:7.xfrom
OsProbe (#77128)#77306elasticsearchmachine merged 4 commits intoelastic:7.xfrom
Conversation
Closes elastic#76812. Closes elastic#77126. OsProbe was only capable of handle cgroup data in the v1 format. However, Debian 11 uses cgroups v2 by default, and Elasticsearch isn't capable of reporting any cgroup information. Therefore, add support for the v2 layout. Note that we have to open access to all of /sys/fs/cgroup because with cgroups v2, the files we need are in an unpredictably location.
* Handle a max memory value of 'max' * Update docs/changelog/77289.yaml * Delete 77289.yaml
Collaborator
|
Pinging @elastic/es-delivery (Team:Delivery) |
Collaborator
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #77128 and #77289.
Closes #76812. Closes #77126.
OsProbe was only capable of handle cgroup data in the v1 format.
However, Debian 11 uses cgroups v2 by default, and Elasticsearch isn't
capable of reporting any cgroup information. Therefore, add support for
the v2 layout.
Note that we have to open access to all of
/sys/fs/cgroupbecause withcgroups v2, the files we need are in an unpredictably location.