linkedin/cruise-control

cgroups v2 support

Open

#1,873 opened on Aug 2, 2022

View on GitHub
 (5 comments) (2 reactions) (0 assignees)Java (649 forks)auto 404
functionalitygood first issue

Repository metrics

Stars
 (3,036 stars)
PR merge metrics
 (PR metrics pending)

Description

Ubuntu 22.04 uses cgroups v2 which has a different file layout from cgroups v1. This leads to an exception when cruise.control.metrics.reporter.kubernetes.mode is set to true:

[2022-08-02 11:58:20,825] WARN Failed to send Cruise Control metric [TOPIC_METRIC,TOPIC_PRODUCE_REQUEST_RATE,time=1659441495306,brokerId=0,topic=__consumer_offsets,value=0.141] (com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter)
[2022-08-02 11:59:15,327] ERROR Got exception in Cruise Control metrics reporter (com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter)
java.io.FileNotFoundException: /sys/fs/cgroup/cpu/cpu.cfs_quota_us (No such file or directory)

Don't know if it's worth fixing or it should be just documented/deprecated/removed. Java cgroup v2 support was added in recent versions (https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8230305) and reporting should work correctly without kubernetes.mode.

Contributor guide