- All Implemented Interfaces:
- SchedulingEditPolicy
public class MetricsInvariantChecker
extends InvariantsChecker
This policy checks at every invocation that a given set of invariants
(specified in a file) are respected over QueueMetrics and JvmMetrics. The
file may contain arbitrary (Javascrip) boolean expression over the metrics
variables.
The right set of invariants depends on the deployment environment, a large
number of complex invariant can make this check expensive.
The MetricsInvariantChecker can be configured to throw a RuntimeException or
simlpy warn in the logs if an invariant is not respected.