]> source.dussan.org Git - rspamd.git/commit
controller.c: Implement ready/health endpoints 3788/head
authorManuel Rüger <manuel@rueg.eu>
Tue, 8 Jun 2021 21:18:21 +0000 (23:18 +0200)
committerManuel Rüger <manuel@rueg.eu>
Tue, 8 Jun 2021 22:12:00 +0000 (00:12 +0200)
commit32a6adb5bf6dc5b42b08768a6f7470dfdc31fbdb
treefc7657ad8a0ab64cf110c4cbf6a8d0d365ca2024
parent5efa9983936e94c5ef3df2092eac63dbd4ccd654
controller.c: Implement ready/health endpoints

These endpoints allow an orchestrator like kubernetes to verify the
status of rspamd (https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)

Current implementation is very minimal.

The health endpoint allows to verify rspamd internally. It could check
for internal configuration and ensure that rspamd itself is healthy
and available.
The ready endpoint signals that rspamd is ready to receive and process
traffic and thus ensures that configured external components are available.
The readiness check could for example test if configured redis servers or
at least one rspamd upstreams is available.
src/controller.c