Class HostThrottleConfig


  • public class HostThrottleConfig
    extends java.lang.Object
    Config for Host Level Throttling.
    • 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
      • memorySamplingPeriodMs

        @Config("host.throttle.memory.sampling.period.ms")
        @Default("100")
        public int memorySamplingPeriodMs
        The sampling period for memory usage query
    • Constructor Detail