diff options
author | Jim Rollenhagen <jim@jimrollenhagen.com> | 2018-02-09 11:30:24 -0800 |
---|---|---|
committer | Jim Rollenhagen <jim@jimrollenhagen.com> | 2018-02-12 14:48:05 -0500 |
commit | 6f439414bdcef9fc02f844f475ec798d48d42558 (patch) | |
tree | f7ae5f852c320a3b89fdafffc61998caf5e3469a /tools | |
parent | 9a2ebde83f268fbcca3386fdfabf8a973e76fb36 (diff) | |
download | ironic-6f439414bdcef9fc02f844f475ec798d48d42558.tar.gz |
Add optional healthcheck middleware
This adds the healthcheck middleware from oslo, configurable via the
[healthcheck]/enabled option. This middleware adds a status check at
`/healthcheck`.
This is useful for load balancers to determine if a service is up (and
add or remove it from rotation), or for monitoring tools to see the
health of the server.
This endpoint is unauthenticated, as not all load balancers or
monitoring tools support authenticating with a health check endpoint.
Change-Id: I7929d5f4502c3f84b1cf30526c94a458081a6a29
Closes-Bug: #1748515
Diffstat (limited to 'tools')
-rw-r--r-- | tools/config/ironic-config-generator.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/config/ironic-config-generator.conf b/tools/config/ironic-config-generator.conf index f738cc406..5412c9159 100644 --- a/tools/config/ironic-config-generator.conf +++ b/tools/config/ironic-config-generator.conf @@ -10,6 +10,7 @@ namespace = ironic_lib.utils namespace = oslo.db namespace = oslo.messaging namespace = oslo.middleware.cors +namespace = oslo.middleware.healthcheck namespace = oslo.concurrency namespace = oslo.policy namespace = oslo.log |