linkedin/cruise-control

cgroups v2 support

Open

#1873 aperta il 2 ago 2022

Vedi su GitHub
 (5 commenti) (2 reazioni) (0 assegnatari)Java (649 fork)auto 404
functionalitygood first issue

Metriche repository

Star
 (3036 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor