Defining health checks
Health checks are essential to ensuring the reliability and availability of your applications running in containers. These checks help determine whether an application is functioning correctly and ready to handle incoming requests. In this documentation, we will walk you through the process of defining health checks for your containerized applications.
What you'll need
Before you dive in, make sure you have the following prerequisites in place:
- A bunny.net account ( Log in or sign up for a free trial).
- Ensure you have already set up the container for which you want to configure health checks. See our Quickstart guide if you haven't set up a container yet.
Accessing health checks
To access health checks for your Magic containers, follow these steps:
-
Login to bunny.net dashboard .
-
Click Magic Containers and locate the container you want to configure health checks.
-
Click on Container Settings and click Edit.
- In the Container Settings menu, navigate to the Monitoring tab.
Health check types
There are three primary health check types available to you, each serving a unique purpose:
- Startup: Verifies if the application has successfully started. Until this check is successful, no incoming requests will be routed to the application.
- Readiness: Ensures the application is fully prepared to handle incoming requests. No requests will be routed to the application until this check is successful. We strongly recommend enabling this check to avoid failed requests.
- Liveness: This check confirms that the application is actively running without problems.
Enabling health checks
To define and enable health checks for your containerized application, follow these steps:
-
For each type of health check (Startup, Readiness, and Liveness), simply click the checkbox to enable it. Enabling these checks is essential to benefit from their functionality.
-
From the dropdown under the required field you can select two configuration methods: HTTP GET and TCP.
For the HTTP GET method, provide the path for the HTTP GET request. The path should be properly formatted.
In the Port field specify the port on which your application is running within the container. The provided port should be valid.
The advanced settings allow you to customize it further based on your needs.
For the TCP method you only have to specify the port to be used for the TCP health check. This port should correspond to the container where your application is hosted.
Note
We strongly recommend enabling at least the Readiness health check. This check helps the platform detect when your application is ready to receive traffic, minimizing the chances of failed requests and ensuring a smoother user experience.
Need help or encountering issues?
If you encounter any difficulties or have questions while following this Quickstart Guide, our support team is here to assist you. Please don't hesitate to contact us via support request form for prompt assistance.
Our dedicated support team is ready to help you resolve any issues you might face during the deployment process, provide additional guidance, or answer your questions.
Updated 3 days ago