Package org.apache.pekko.cluster.metrics
Class SystemLoadAverageMetricsSelector
java.lang.Object
org.apache.pekko.cluster.metrics.SystemLoadAverageMetricsSelector
MetricsSelector that uses the system load average metrics.
System load average is OS-specific average load on the CPUs in the system,
for the past 1 minute. The system is possibly nearing a bottleneck if the
system load average is nearing number of cpus/cores.
Low load average capacity => small weight.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancapacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics) abstract static booleanJava 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
-
SystemLoadAverageMetricsSelector
public SystemLoadAverageMetricsSelector()
-
-
Method Details
-
getInstance
Java API: get the singleton instance -
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
-