public class CGroupCpuGuarantee extends CGroupMetricsBase implements WorkerMetricRegistrant
Report the guaranteed number of cpu percentage this worker has requested. It gets the result from cpu.shares. Use this when org.apache.storm.container.cgroup.CgroupManager is used as the storm.resource.isolation.plugin.
core, enabled
Constructor and Description |
---|
CGroupCpuGuarantee(Map<String,Object> conf) |
Modifier and Type | Method and Description |
---|---|
void |
registerMetrics(TopologyContext topologyContext) |
public void registerMetrics(TopologyContext topologyContext)
registerMetrics
in interface WorkerMetricRegistrant
Copyright © 2022 The Apache Software Foundation. All rights reserved.