Class JvmMemoryPressureCheck
java.lang.Object
com.kingsrook.qqq.backend.core.health.JvmMemoryPressureCheck
- All Implemented Interfaces:
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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCheck against the JVM-wide monitor.JvmMemoryPressureCheck(HealthCheckKind kind, Supplier<JvmMemoryPressure> monitor) Check against a given monitor (tests). -
Method Summary
Modifier and TypeMethodDescriptionstatic List<HealthCheckMetaData> Core registrations: a readiness check and a liveness-probe check, both evaluated live on every probe (never from the runner's cache).run(HealthCheckInput input) Sample and judge.
-
Field Details
-
READINESS_NAME
- See Also:
-
LIVENESS_NAME
- See Also:
-
-
Constructor Details
-
JvmMemoryPressureCheck
Check against the JVM-wide monitor. -
JvmMemoryPressureCheck
Check against a given monitor (tests).
-
-
Method Details
-
definitions
Core registrations: a readiness check and a liveness-probe check, both evaluated live on every probe (never from the runner's cache). -
run
Sample and judge.- Specified by:
runin interfaceHealthCheck
-