Skip to main content
Health checks are only available for servers.

Overview

Every time an installation is redeployed (through a Git push, configuration change, etc.), a new set of replicas will replace the old ones. To ensure zero-downtime deployments, Ryvn follows this process:
1

New deployment

When you push an update, Ryvn creates new replicas of your installation.
2

Health checks

Ryvn sends requests to your health check endpoint to verify the new replicas are ready.
3

Traffic management

No traffic is routed to new replicas until they return successful responses.
4

Completion

Only after health checks pass, the old replicas are removed.
Health checks are essential for zero-downtime deployments. Every server should implement a health check endpoint so Ryvn can verify its readiness to handle traffic. Without health checks, there’s no reliable way to ensure new replicas are fully operational before routing requests to them.

Configuring health checks

To configure health checks for your installation:
1

Navigate to Environments

Go to the Environments tab in the Ryvn Dashboard
2

Select environment

Choose the environment containing your installation
3

Select installation

Click on the installation you want to configure
4

Configure health check

  1. In the Health Checks section, enter your health check endpoint path (e.g., /healthz)
  2. Click Save to apply the changes
The actions your endpoint should take to verify health depend on your installation’s details. We recommend performing operation-critical checks, such as executing a simple database query to confirm connectivity.

Health check protocol

With every health check, Ryvn sends an HTTP GET request to each replica’s health check endpoint. The response determines the replica’s health status: When a replica becomes potentially unhealthy, Ryvn takes different actions depending on the context:

IaC configuration

When using Infrastructure as Code, health checks are configured via the config block in your ServiceInstallation YAML. The following fields control health check behavior:
For full field reference, see the Server Installation documentation.