How to configure 'ls.cgroup.cpu.path.override' in the Logstash JAVA_OPTS environment variable

I would like to know how to configure ls.cgroup.cpu.path.override and what this is means actaully?

[DEBUG] 2022-12-09 12:27:37.592 [pool-6-thread-1] cpuresource - File /sys/fs/cgroup/cpu/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-poda705e11a_7277_4e72_914b_a091260c4cea.slice/crio-1255da2789479619073a0166176f421e90dbbd11c61d5821a9cfba5431cfb530.scope/cpu.cfs_period_us cannot be found, try providing an override 'ls.cgroup.cpu.path.override' in the Logstash JAVA_OPTS environment variable

857[DEBUG] 2022-12-09 12:27:37.593 [pool-6-thread-1] cpuresource - File /sys/fs/cgroup/cpu/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-poda705e11a_7277_4e72_914b_a091260c4cea.slice/crio-1255da2789479619073a0166176f421e90dbbd11c61d5821a9cfba5431cfb530.scope/cpu.cfs_quota_us cannot be found, try providing an override 'ls.cgroup.cpu.path.override' in the Logstash JAVA_OPTS environment variable

858[DEBUG] 2022-12-09 12:27:37.593 [pool-6-thread-1] cpuresource - File /sys/fs/cgroup/cpu/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-poda705e11a_7277_4e72_914b_a091260c4cea.slice/crio-1255da2789479619073a0166176f421e90dbbd11c61d5821a9cfba5431cfb530.scope/cpu.stat cannot be found, try providing an override 'ls.cgroup.cpu.path.override' in the Logstash JAVA_OPTS environment variable

859[DEBUG] 2022-12-09 12:27:37.593 [pool-6-thread-1] cpuacctresource - File /sys/fs/cgroup/cpuacct/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-poda705e11a_7277_4e72_914b_a091260c4cea.slice/crio-1255da2789479619073a0166176f421e90dbbd11c61d5821a9cfba5431cfb530.scope/cpuacct.usage cannot be found, try providing an override 'ls.cgroup.cpuacct.path.override' in the Logstash JAVA_OPTS environment variable

860[DEBUG] 2022-12-09 12:27:37.737 [pool-6-thread-1] jvm - collector name {:name=>"Copy"}

861[DEBUG] 2022-12-09 12:27:37.737 [pool-6-thread-1] jvm - collector name {:name=>"MarkSweepCompact"}

862[DEBUG] 2022-12-09 12:27:38.726 [logstash-pipeline-flush] PeriodicFlush - Pushing flush onto pipeline.

This is from years ago when logstash used LS_JAVA_OPTS rather than JAVA_OPTS, but should help you with the syntax.

Thanks for the reply, but how can i add this config on k8s ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.