2022-01-04 18:14:20 +00:00
---
2022-05-30 00:08:35 +00:00
stage: Systems
2022-01-04 18:14:20 +00:00
group: Distribution
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
---
# Sidekiq Health Check **(FREE SELF)**
GitLab provides liveness and readiness probes to indicate service health and
2022-01-13 21:14:07 +00:00
reachability to the Sidekiq cluster. These endpoints
2022-01-04 18:14:20 +00:00
[can be provided to schedulers like Kubernetes ](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ )
to hold traffic until the system is ready or restart the container as needed.
The health check server can be set up when [configuring Sidekiq ](sidekiq.md ).
## Readiness
The readiness probe checks whether the Sidekiq workers are ready to process jobs.
```plaintext
GET /readiness
```
2022-05-02 18:10:57 +00:00
If the server is bound to `localhost:8092` , the process cluster can be probed for readiness as follows:
2022-01-04 18:14:20 +00:00
```shell
curl "http://localhost:8092/readiness"
```
On success, the endpoint returns a `200` HTTP status code, and a response like the following:
```json
{
"status": "ok"
}
```
## Liveness
Checks whether the Sidekiq cluster is running.
```plaintext
GET /liveness
```
2022-05-02 18:10:57 +00:00
If the server is bound to `localhost:8092` , the process cluster can be probed for liveness as follows:
2022-01-04 18:14:20 +00:00
```shell
curl "http://localhost:8092/liveness"
```
On success, the endpoint returns a `200` HTTP status code, and a response like the following:
```json
{
"status": "ok"
}
```