akka.cluster.routing
Class SystemLoadAverageMetricsSelector

java.lang.Object
  extended by akka.cluster.routing.CapacityMetricsSelector
      extended by akka.cluster.routing.SystemLoadAverageMetricsSelector
All Implemented Interfaces:
MetricsSelector, java.io.Serializable, scala.Equals, scala.Product

public class SystemLoadAverageMetricsSelector
extends CapacityMetricsSelector
implements scala.Product, scala.Serializable

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.

See Also:
Serialized Form

Constructor Summary
SystemLoadAverageMetricsSelector()
           
 
Method Summary
static scala.collection.immutable.Map<Address,java.lang.Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)
           
static SystemLoadAverageMetricsSelector$ getInstance()
          Java API: get the singleton instance
 
Methods inherited from class akka.cluster.routing.CapacityMetricsSelector
capacity, weights, weights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 
Methods inherited from interface akka.cluster.routing.MetricsSelector
fromConfig
 

Constructor Detail

SystemLoadAverageMetricsSelector

public SystemLoadAverageMetricsSelector()
Method Detail

getInstance

public static SystemLoadAverageMetricsSelector$ getInstance()
Java API: get the singleton instance


capacity

public static scala.collection.immutable.Map<Address,java.lang.Object> capacity(scala.collection.immutable.Set<NodeMetrics> nodeMetrics)