healthcheck-payload — Optimization
Bound readiness query cost
Section titled “Bound readiness query cost”Choose a small collection, use depth zero and supply a narrow where clause for frequent polls.
Interpret probe failures
Section titled “Interpret probe failures”The Payload query check is critical for readiness and noncritical for diagnostics. A failed query reports PAYLOAD_QUERY_FAILED.
Keep the default query small
Section titled “Keep the default query small”The check defaults to limit: 1, depth: 0, and readiness. Frequent heavy queries can overload the database.
Decide whether an empty collection is unhealthy
Section titled “Decide whether an empty collection is unhealthy”Set expectedMinDocuments only when an empty collection represents an operational failure, such as missing required seed configuration.