FerryDocs
ConceptsDeploys

Health checks

A health check is the test that a new instance must pass before it gets traffic.

Edit on GitHub
GET /healthzFerryNew instancenot ready

Ferry tests each new instance one time each second.

1 / 3

The three tests

ServiceTest
Web, private or static, with a health check pathGET <path> must answer with a status below 400.
Web, private or static, without a pathThe port must accept a TCP connection and keep it open.
Background workerThe process must run for 5 seconds.

Set a health check path

Terminal
ferry update api --health /healthz

In the dashboard, use Health check path in the settings.

Make an endpoint only for this test. It must answer quickly when the app is ready.

On this page