Class JvmMemoryPressureCheck

java.lang.Object
com.kingsrook.qqq.backend.core.health.JvmMemoryPressureCheck
All Implemented Interfaces:
HealthCheck

public class JvmMemoryPressureCheck extends Object implements HealthCheck
Readiness and liveness views of JvmMemoryPressure. READINESS: DEGRADED as soon as pressure starts; after readinessAfterSeconds it is DOWN (503 on /ready, the pod leaves the Service) when the host opted in with QQQ_HEALTH_MEMORY_READINESS_ACTION=down, else it stays DEGRADED. LIVENESS: DOWN once pressure has lasted livenessAfterSeconds, which fails /live and lets the orchestrator restart the JVM instead of letting it crawl until OutOfMemoryError.