final case class MixMetricsSelector(selectors: IndexedSeq[CapacityMetricsSelector]) extends MixMetricsSelectorBase with Product with Serializable

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]

Annotations
@SerialVersionUID()
Source
ClusterMetricsRouting.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MixMetricsSelector
  2. Product
  3. Equals
  4. MixMetricsSelectorBase
  5. CapacityMetricsSelector
  6. MetricsSelector
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MixMetricsSelector(selectors: IndexedSeq[CapacityMetricsSelector])

Value Members

  1. def capacity(nodeMetrics: Set[NodeMetrics]): Map[Address, Double]

    Remaining capacity for each node.

    Remaining capacity for each node. The value is between 0.0 and 1.0, where 0.0 means no remaining capacity (full utilization) and 1.0 means full remaining capacity (zero utilization).

    Definition Classes
    MixMetricsSelectorBaseCapacityMetricsSelector
  2. val selectors: IndexedSeq[CapacityMetricsSelector]
  3. 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
    CapacityMetricsSelectorMetricsSelector
  4. def weights(capacity: Map[Address, Double]): Map[Address, Int]

    Converts the capacity values to weights.

    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.

    Definition Classes
    CapacityMetricsSelector