Class CPUCircuitBreaker


  • public class CPUCircuitBreaker
    extends CircuitBreaker
    Tracks current CPU usage and triggers if the specified threshold is breached.

    This circuit breaker gets the average CPU load over the last minute and uses that data to take a decision. We depend on OperatingSystemMXBean which does not allow a configurable interval of collection of data. //TODO: Use Codahale Meter to calculate the value locally.

    The configuration to define which mode to use and the trigger threshold are defined in solrconfig.xml