Package com.github.ambry.config
Class PerformanceConfig
- java.lang.Object
-
- com.github.ambry.config.PerformanceConfig
-
public class PerformanceConfig extends java.lang.Object
Configuration parameters required to help evaluate performance of Ambry(i.e latency, health).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NON_SUCCESS_REST_REQUEST_TOTAL_TIME_THRESHOLD_STR
java.util.EnumMap<RestMethod,Thresholds>
nonSuccessRequestThresholds
static java.lang.String
SUCCESS_REST_REQUEST_TOTAL_TIME_THRESHOLD_STR
long
successGetAverageBandwidthThreshold
The average bandwidth (bytes/sec) threshold for success GET request(2xx status code).long
successGetTimeToFirstByteThreshold
The time to first byte (millisecond) threshold for success GET request(2xx status code).long
successPostAverageBandwidthThreshold
The average bandwidth (bytes/sec) threshold for success POST request(2xx status code).java.util.EnumMap<RestMethod,Thresholds>
successRequestThresholds
-
Constructor Summary
Constructors Constructor Description PerformanceConfig(VerifiableProperties verifiableProperties)
-
-
-
Field Detail
-
NON_SUCCESS_REST_REQUEST_TOTAL_TIME_THRESHOLD_STR
public static final java.lang.String NON_SUCCESS_REST_REQUEST_TOTAL_TIME_THRESHOLD_STR
- See Also:
- Constant Field Values
-
SUCCESS_REST_REQUEST_TOTAL_TIME_THRESHOLD_STR
public static final java.lang.String SUCCESS_REST_REQUEST_TOTAL_TIME_THRESHOLD_STR
- See Also:
- Constant Field Values
-
successGetTimeToFirstByteThreshold
@Config("performance.success.get.time.to.first.byte.threshold") @Default("Long.MAX_VALUE") public final long successGetTimeToFirstByteThreshold
The time to first byte (millisecond) threshold for success GET request(2xx status code). The request is considered "Unsatisfied" if the time exceeds this threshold.
-
successGetAverageBandwidthThreshold
@Config("performance.success.get.average.bandwidth.threshold") @Default("0") public final long successGetAverageBandwidthThreshold
The average bandwidth (bytes/sec) threshold for success GET request(2xx status code). The request is considered "Unsatisfied" if actual bandwidth falls below this threshold.
-
successPostAverageBandwidthThreshold
@Config("performance.success.post.average.bandwidth.threshold") @Default("0") public final long successPostAverageBandwidthThreshold
The average bandwidth (bytes/sec) threshold for success POST request(2xx status code). The request is considered "Unsatisfied" if actual bandwidth falls below this threshold.
-
successRequestThresholds
public final java.util.EnumMap<RestMethod,Thresholds> successRequestThresholds
-
nonSuccessRequestThresholds
public final java.util.EnumMap<RestMethod,Thresholds> nonSuccessRequestThresholds
-
-
Constructor Detail
-
PerformanceConfig
public PerformanceConfig(VerifiableProperties verifiableProperties)
-
-