The health service, as functions. The server builds and registers a HealthStatusManager by default; these set what it reports — which is what Kubernetes readiness and Knative probes read.
(health/set-status! srv :serving) ; the overall service
(health/set-status! srv "acme.greeter.Greeter" :not-serving)
clj-grpc.server/shutdown already enters the terminal NOT_SERVING state before closing the listener, so rollout drain needs no code here.
The health service, as functions. The server builds and registers a
HealthStatusManager by default; these set what it reports — which is what
Kubernetes readiness and Knative probes read.
(health/set-status! srv :serving) ; the overall service
(health/set-status! srv "acme.greeter.Greeter" :not-serving)
clj-grpc.server/shutdown already enters the terminal NOT_SERVING state
before closing the listener, so rollout drain needs no code here.(clear-status! server service-name)Stop reporting a service; checks for it answer SERVICE_UNKNOWN.
Stop reporting a service; checks for it answer SERVICE_UNKNOWN.
(set-status! server status)(set-status! server service-name status)Set the reported status for one service, or — 2-arity — for the overall server (the empty service name, which is what probes usually ask about). status: :serving | :not-serving | :unknown | :service-unknown.
Set the reported status for one service, or — 2-arity — for the overall server (the empty service name, which is what probes usually ask about). status: :serving | :not-serving | :unknown | :service-unknown.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |