Add a /healthcheck middleware

The /healthcheck URL, as provided by oslo.middleware, is very
useful for operators to setup haproxy and to do monitoring.
Such feature is already in many services like Keystone, Glance,
and others.

The same type of patch has been approved in Neutronm, Heat, and
Cinder. It's under discussion in Nova, where they want to check
more than just the wsgi app, though the pricinple to add it has
been accepted already.

Change-Id: I8f24431db0ec88385b4b916e181d6da3e598c764
This commit is contained in:
Thomas Goirand 2020-05-16 17:30:59 +02:00 committed by Erik Olof Gunnar Andersson
parent 522ab45d51
commit 3321092928
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
[composite:osapi_dns]
use = egg:Paste#urlmap
/: osapi_dns_versions
/healthcheck: healthcheck
/v2: osapi_dns_v2
/admin: osapi_dns_admin
@ -59,3 +60,8 @@ paste.filter_factory = designate.api.middleware:FaultWrapperMiddleware.factory
[filter:validation_API_v2]
paste.filter_factory = designate.api.middleware:APIv2ValidationErrorMiddleware.factory
[app:healthcheck]
paste.app_factory = oslo_middleware:Healthcheck.app_factory
backends = disable_by_file
disable_by_file_path = /etc/designate/healthcheck_disable