Skip to content

healthcheck-payload — Optimization

Choose a small collection, use depth zero and supply a narrow where clause for frequent polls.

The Payload query check is critical for readiness and noncritical for diagnostics. A failed query reports PAYLOAD_QUERY_FAILED.

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.

Package guidance · Implementation. · Matching skill.