cryptoe opened a new pull request, #18705:
URL: https://github.com/apache/druid/pull/18705
## Summary
This PR introduces auto-switching cgroup monitors that can dynamically
detect and switch between cgroup v1 and v2 implementations, along with
necessary code style fixes.
### Changes
-Now CgroupCpuMonitor , CgroupCpuSetMonitor , CgroupDiskMonitor
,MemoryMonitor autoswitch to cgroups v2 and no longer fail in case cgroups v2
is detected.
- All cgroupMetrics now emit a dimension 'cgroupversion" to understand which
cgroup version was chosen
- CgroupV2CpuMonitor also emits : `cgroup/cpu/shares` and
`cgroup/cpu/cores_quota`
#### Test Plan
- All existing cgroup monitor tests updated to work with auto-switching
logic
- New comprehensive test suites added for cgroup v2 implementations
- Tests verify correct detection and switching between cgroup versions
- Tested on a cluster.
This enhancement allows Druid to seamlessly work across different
containerization environments that use either cgroup v1 or v2, improving
compatibility and reducing configuration overhead.
### Release notes
- Now CgroupCpuMonitor , CgroupCpuSetMonitor , CgroupDiskMonitor
,MemoryMonitor autoswitch to cgroups v2 and no longer fail in case cgroups v2
is detected.
- "CpuAcctDeltaMonitor" fails gracefully incase cgroups v2 is detected
- All cgroupMetrics now emit a dimension 'cgroupversion" to understand which
cgroup version was chosen
- "CgroupV2CpuMonitor" also emits : `cgroup/cpu/shares` and
`cgroup/cpu/cores_quota`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]