Bier.Health (bier v0.1.0)

Copy Markdown View Source

Health checks backing the per-instance admin endpoints.

ready?/1 reports whether a named Bier instance can serve requests: its schema cache must be populated AND its Postgrex pool must answer a trivial query. The schema-cache check runs first and short-circuits, so a name with no cache returns false without touching (a possibly absent) connection pool.

Summary

Functions

Returns true when the instance name is ready to serve requests: the schema cache is populated and the database answers SELECT 1.

Functions

ready?(name)

@spec ready?(Bier.name()) :: boolean()

Returns true when the instance name is ready to serve requests: the schema cache is populated and the database answers SELECT 1.