Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Conversation

@tylersmalley
Copy link
Member

Similar to elastic/elasticsearch-docker#25 we need to override the cgroup cpu and cpuacct paths.

The virtual file /proc/self/cgroup should list the current cgroup
membership. For each hierarchy, you can follow the cgroup path from
this file to the cgroup filesystem (usually /sys/fs/cgroup/) and
introspect the statistics for the cgroup for the given
hierarchy. Alas, Docker breaks this by mounting the container
statistics at the root while leaving the cgroup paths as the actual
paths. Therefore, Kibana provides a mechanism to override
reading the cgroup path from /proc/self/cgroup and instead uses the
cgroup path defined the configuration properties
cpu.cgroup.path.override and cpuacct.cgroup.path.override.
Therefore, we set this value here so that cgroup statistics are
available for the container this process will run in.

Signed-off-by: Tyler Smalley <[email protected]>
@tylersmalley
Copy link
Member Author

Blocked on elastic/kibana#10402

@tylersmalley
Copy link
Member Author

tylersmalley commented Apr 11, 2017

elastic/kibana#10402 has been merged so this is ready for review. This will need backported to 5.x

@ghost
Copy link

ghost commented Apr 13, 2017

Thanks @tylersmalley. Which versions will this apply to? Is it for all 5.x versions?

@tylersmalley
Copy link
Member Author

This should target 5.4, 5.x and 6.0 (master)

@ghost ghost merged commit 63113fd into elastic:master May 2, 2017
@tylersmalley tylersmalley deleted the cgroup-override branch May 2, 2017 04:08
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant