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 /ironic/conf/__init__.py | |
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 'ironic/conf/__init__.py')
-rw-r--r-- | ironic/conf/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ironic/conf/__init__.py b/ironic/conf/__init__.py index da095e2ba..0370f5ae9 100644 --- a/ironic/conf/__init__.py +++ b/ironic/conf/__init__.py @@ -29,6 +29,7 @@ from ironic.conf import deploy from ironic.conf import dhcp from ironic.conf import drac from ironic.conf import glance +from ironic.conf import healthcheck from ironic.conf import ilo from ironic.conf import inspector from ironic.conf import ipmi @@ -62,6 +63,7 @@ deploy.register_opts(CONF) drac.register_opts(CONF) dhcp.register_opts(CONF) glance.register_opts(CONF) +healthcheck.register_opts(CONF) ilo.register_opts(CONF) inspector.register_opts(CONF) ipmi.register_opts(CONF) |