abstract class MixMetricsSelectorBase extends CapacityMetricsSelector
Ordering
- Alphabetic
- By Inheritance
Inherited
- MixMetricsSelectorBase
- CapacityMetricsSelector
- MetricsSelector
- Serializable
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new MixMetricsSelectorBase(selectors: [CapacityMetricsSelector])
Java API: construct a mix-selector from a sequence of selectors
- new MixMetricsSelectorBase(selectors: [CapacityMetricsSelector])
Value Members
- def capacity(nodeMetrics: Set[NodeMetrics]): Map[, 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
- → CapacityMetricsSelector
- def weights(nodeMetrics: Set[NodeMetrics]): Map[, 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
- → MetricsSelector
- def weights(capacity: Map[, Double]): Map[, 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
Base class for MetricsSelector that combines other selectors and aggregates their capacity.