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.
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
- In the Health Checks section, enter your health check endpoint path (e.g.,
/healthz) - 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 anHTTP 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 theconfig block in your ServiceInstallation YAML. The following fields control health check behavior: