Skip to content

cgroup: add option to override the /sys/fs/cgroup hierarchy#148

Merged
axw merged 3 commits intoelastic:masterfrom
axw:cgroup-hierarchy-override
Dec 3, 2020
Merged

cgroup: add option to override the /sys/fs/cgroup hierarchy#148
axw merged 3 commits intoelastic:masterfrom
axw:cgroup-hierarchy-override

Conversation

@axw
Copy link
Copy Markdown
Member

@axw axw commented Dec 2, 2020

When running in Docker, paths in /proc/<pid>/cgroup do not
correspond to the paths under /sys/fs/cgroup/<subsystem>/...

Instead, the root /sys/fs/cgroup/<subsystem> should be
used there. Provide an option for overridding the path,
similar to elastic/elasticsearch#22757.

I added NewReaderOptions/ReaderOptions to avoid breaking
the API, and to minimise breakage in the future.

Required for elastic/beats#22844

axw added 3 commits December 2, 2020 11:28
When running in Docker, paths in /proc/<pid>/cgroup do not
correspond to the paths under /sys/fs/cgroup/<subsystem>/...

Instead, the root (/sys/fs/cgroup/<subsystem/>) should be
used there. Provide an option for overridding the path.
@andresrc
Copy link
Copy Markdown

andresrc commented Dec 2, 2020

ping @elastic/integrations-services

Copy link
Copy Markdown
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

LGTM

@axw axw merged commit f92177c into elastic:master Dec 3, 2020
@axw axw deleted the cgroup-hierarchy-override branch December 3, 2020 01:51
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.

3 participants