Package org.apache.pekko.cluster.metrics
Class CpuMetricsSelector
java.lang.Object
org.apache.pekko.cluster.metrics.CpuMetricsSelector
MetricsSelector that uses the combined CPU time metrics and stolen CPU time metrics.
In modern Linux kernels: CpuCombined + CpuStolen + CpuIdle = 1.0 or 100%.
Combined CPU is sum of User + Sys + Nice + Wait times, as percentage.
Stolen CPU is the amount of CPU taken away from this virtual machine by the hypervisor, as percentage.
Low CPU capacity => small node weight.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancapacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) abstract static booleanstatic doublefactor()How much extra weight to give to the stolen time.static CpuMetricsSelector$Java API: get the singleton instancestatic inthashCode()static intstatic ObjectproductElement(int x$1) static StringproductElementName(int n) static scala.collection.Iterator<String>static scala.collection.Iterator<Object>static Stringstatic StringtoString()weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
-
Constructor Details
-
CpuMetricsSelector
public CpuMetricsSelector()
-
-
Method Details
-
getInstance
Java API: get the singleton instance -
factor
public static double factor()How much extra weight to give to the stolen time. -
capacity
public static scala.collection.immutable.Map<Address,Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) -
productPrefix
-
productArity
public static int productArity() -
productElement
-
productIterator
-
canEqual
-
hashCode
public static int hashCode() -
toString
-
weights
-
weights
public static scala.collection.immutable.Map<Address,Object> weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) -
equals
-
productElementName
-
productElementNames
-