Enum ScalingMetric
- java.lang.Object
-
- java.lang.Enum<ScalingMetric>
-
- org.apache.flink.autoscaler.metrics.ScalingMetric
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ScalingMetric>
public enum ScalingMetric extends java.lang.Enum<ScalingMetric>
Supported scaling metrics. These represent high level metrics computed from Flink job metrics that are used for scaling decisions in the autoscaler module.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCUMULATED_BUSY_TIME
CATCH_UP_DATA_RATE
Target processing rate of operators as derived from backlog (records/sec).EXPECTED_PROCESSING_RATE
Expected true processing rate after scale up.GC_PRESSURE
Maximum GC pressure across taskmanagers.HEAP_MAX_USAGE_RATIO
Percentage of max heap used (between 0 and 1).HEAP_MEMORY_USED
Measured max used heap size in bytes.LAG
Total number of pending records.LOAD
Subtask load (busy time ratio 0 (idle) to 1 (fully utilized)).MANAGED_MEMORY_USED
Measured max managed memory size in bytes.MAX_PARALLELISM
Job vertex max parallelism.METASPACE_MEMORY_USED
Measured max metaspace memory size in bytes.NUM_RECORDS_IN
NUM_RECORDS_OUT
NUM_TASK_SLOTS_USED
OBSERVED_TPR
Observed true processing rate for sources.PARALLELISM
Job vertex parallelism.RECOMMENDED_PARALLELISM
Recommended job vertex parallelism.SCALE_DOWN_RATE_THRESHOLD
Lower boundary of the target data rate range.SCALE_UP_RATE_THRESHOLD
Upper boundary of the target data rate range.TARGET_DATA_RATE
Target processing rate of operators as derived from source inputs (records/sec).TRUE_PROCESSING_RATE
Processing rate at full capacity (records/sec).
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<ScalingMetric>
REPORTED_VERTEX_METRICS
List ofScalingMetric
s to be reported as per vertex Flink metrics.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScalingMetric
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ScalingMetric[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOAD
public static final ScalingMetric LOAD
Subtask load (busy time ratio 0 (idle) to 1 (fully utilized)).
-
TRUE_PROCESSING_RATE
public static final ScalingMetric TRUE_PROCESSING_RATE
Processing rate at full capacity (records/sec).
-
OBSERVED_TPR
public static final ScalingMetric OBSERVED_TPR
Observed true processing rate for sources.
-
TARGET_DATA_RATE
public static final ScalingMetric TARGET_DATA_RATE
Target processing rate of operators as derived from source inputs (records/sec).
-
CATCH_UP_DATA_RATE
public static final ScalingMetric CATCH_UP_DATA_RATE
Target processing rate of operators as derived from backlog (records/sec).
-
LAG
public static final ScalingMetric LAG
Total number of pending records.
-
PARALLELISM
public static final ScalingMetric PARALLELISM
Job vertex parallelism.
-
RECOMMENDED_PARALLELISM
public static final ScalingMetric RECOMMENDED_PARALLELISM
Recommended job vertex parallelism.
-
MAX_PARALLELISM
public static final ScalingMetric MAX_PARALLELISM
Job vertex max parallelism.
-
SCALE_UP_RATE_THRESHOLD
public static final ScalingMetric SCALE_UP_RATE_THRESHOLD
Upper boundary of the target data rate range.
-
SCALE_DOWN_RATE_THRESHOLD
public static final ScalingMetric SCALE_DOWN_RATE_THRESHOLD
Lower boundary of the target data rate range.
-
EXPECTED_PROCESSING_RATE
public static final ScalingMetric EXPECTED_PROCESSING_RATE
Expected true processing rate after scale up.
-
NUM_RECORDS_IN
public static final ScalingMetric NUM_RECORDS_IN
-
NUM_RECORDS_OUT
public static final ScalingMetric NUM_RECORDS_OUT
-
ACCUMULATED_BUSY_TIME
public static final ScalingMetric ACCUMULATED_BUSY_TIME
-
GC_PRESSURE
public static final ScalingMetric GC_PRESSURE
Maximum GC pressure across taskmanagers. Percentage of time spent garbage collecting between 0 (no time in GC) and 1 (100% time in GC).
-
HEAP_MEMORY_USED
public static final ScalingMetric HEAP_MEMORY_USED
Measured max used heap size in bytes.
-
MANAGED_MEMORY_USED
public static final ScalingMetric MANAGED_MEMORY_USED
Measured max managed memory size in bytes.
-
METASPACE_MEMORY_USED
public static final ScalingMetric METASPACE_MEMORY_USED
Measured max metaspace memory size in bytes.
-
HEAP_MAX_USAGE_RATIO
public static final ScalingMetric HEAP_MAX_USAGE_RATIO
Percentage of max heap used (between 0 and 1).
-
NUM_TASK_SLOTS_USED
public static final ScalingMetric NUM_TASK_SLOTS_USED
-
-
Field Detail
-
REPORTED_VERTEX_METRICS
public static final java.util.Set<ScalingMetric> REPORTED_VERTEX_METRICS
List ofScalingMetric
s to be reported as per vertex Flink metrics.
-
-
Method Detail
-
values
public static ScalingMetric[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScalingMetric c : ScalingMetric.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScalingMetric valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-