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:
parent
522ab45d51
commit
3321092928
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue