MixMetricsSelector

MetricsSelector that combines other selectors and aggregates their capacity values. By default it uses [akka.cluster.routing.HeapMetricsSelector], [akka.cluster.routing.CpuMetricsSelector], and [akka.cluster.routing.SystemLoadAverageMetricsSelector]

Companion:
object
Source:
ClusterMetricsRouting.scala
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

Inherited from:
Product
override def weights(nodeMetrics: Set[NodeMetrics]): Map[Address, Int]

The weights per address, based on the capacity produced by the nodeMetrics.

The weights per address, based on the capacity produced by the nodeMetrics.

Definition Classes
Inherited from:
CapacityMetricsSelector
Source:
ClusterMetricsRouting.scala
def weights(capacity: Map[Address, Double]): Map[Address, Int]

Converts the capacity values to weights. The node with lowest capacity gets weight 1 (lowest usable capacity is 1%) and other nodes gets weights proportional to their capacity compared to the node with lowest capacity.

Converts the capacity values to weights. The node with lowest capacity gets weight 1 (lowest usable capacity is 1%) and other nodes gets weights proportional to their capacity compared to the node with lowest capacity.

Inherited from:
CapacityMetricsSelector
Source:
ClusterMetricsRouting.scala