Class CpuMetricsSelector

java.lang.Object
org.apache.pekko.cluster.metrics.CpuMetricsSelector

public class CpuMetricsSelector extends Object
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 Details

    • CpuMetricsSelector

      public CpuMetricsSelector()
  • Method Details

    • getInstance

      public static CpuMetricsSelector$ 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

      public static String productPrefix()
    • productArity

      public static int productArity()
    • productElement

      public static Object productElement(int x$1)
    • productIterator

      public static scala.collection.Iterator<Object> productIterator()
    • canEqual

      public static boolean canEqual(Object x$1)
    • hashCode

      public static int hashCode()
    • toString

      public static String toString()
    • weights

      public static scala.collection.immutable.Map<Address,Object> weights(scala.collection.immutable.Map<Address,Object> capacity)
    • weights

      public static scala.collection.immutable.Map<Address,Object> weights(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
    • equals

      public abstract static boolean equals(Object that)
    • productElementName

      public static String productElementName(int n)
    • productElementNames

      public static scala.collection.Iterator<String> productElementNames()