Package com.github.ambry.config
Class HostThrottleConfig
- java.lang.Object
-
- com.github.ambry.config.HostThrottleConfig
-
public class HostThrottleConfig extends java.lang.Object
Config for Host Level Throttling.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CPU_SAMPLING_PERIOD_MS
int
cpuSamplingPeriodMs
The sampling period for CPU usage querystatic java.lang.String
HARDWARE_THRESHOLDS
java.lang.String
hardwareThresholds
Threshold for hardware resource usage, in JSON string.static java.lang.String
MEMORY_SAMPLING_PERIOD_MS
int
memorySamplingPeriodMs
The sampling period for memory usage querystatic java.lang.String
REST_REQUEST_QUOTA_STRING
java.lang.String
restRequestQuota
Quotas for rest requests, in JSON string.
-
Constructor Summary
Constructors Constructor Description HostThrottleConfig(VerifiableProperties verifiableProperties)
-
-
-
Field Detail
-
REST_REQUEST_QUOTA_STRING
public static final java.lang.String REST_REQUEST_QUOTA_STRING
- See Also:
- Constant Field Values
-
HARDWARE_THRESHOLDS
public static final java.lang.String HARDWARE_THRESHOLDS
- See Also:
- Constant Field Values
-
CPU_SAMPLING_PERIOD_MS
public static final java.lang.String CPU_SAMPLING_PERIOD_MS
- See Also:
- Constant Field Values
-
MEMORY_SAMPLING_PERIOD_MS
public static final java.lang.String MEMORY_SAMPLING_PERIOD_MS
- See Also:
- Constant Field Values
-
restRequestQuota
@Config("host.throttle.rest.request.quota") public final java.lang.String restRequestQuota
Quotas for rest requests, in JSON string. Default value: DEFAULT_REST_REQUEST_QUOTA_STRING
-
hardwareThresholds
@Config("host.throttle.hardware.thresholds") public final java.lang.String hardwareThresholds
Threshold for hardware resource usage, in JSON string. Default value: DEFAULT_REST_REQUEST_QUOTA_STRING
-
cpuSamplingPeriodMs
@Config("host.throttle.cpu.sampling.period.ms") @Default("100") public int cpuSamplingPeriodMs
The sampling period for CPU usage query
-
-
Constructor Detail
-
HostThrottleConfig
public HostThrottleConfig(VerifiableProperties verifiableProperties)
-
-