Merge "Enable healthcheck middleware by default"
This commit is contained in:
commit
26826269dc
|
@ -3,6 +3,7 @@ pipeline = cors http_proxy_to_wsgi request_id versions acl auth_validator sahara
|
||||||
|
|
||||||
[composite:sahara_api]
|
[composite:sahara_api]
|
||||||
use = egg:Paste#urlmap
|
use = egg:Paste#urlmap
|
||||||
|
/healthcheck: healthcheck
|
||||||
/: sahara_apiv2
|
/: sahara_apiv2
|
||||||
|
|
||||||
# this app is given as a reference for v1-only deployments
|
# this app is given as a reference for v1-only deployments
|
||||||
|
@ -37,3 +38,8 @@ paste.filter_factory = sahara.api.middleware.version_discovery:VersionResponseMi
|
||||||
# this filter is given as a reference for v1-only deployments
|
# this filter is given as a reference for v1-only deployments
|
||||||
#[filter:versions]
|
#[filter:versions]
|
||||||
#paste.filter_factory = sahara.api.middleware.version_discovery:VersionResponseMiddlewareV1.factory
|
#paste.filter_factory = sahara.api.middleware.version_discovery:VersionResponseMiddlewareV1.factory
|
||||||
|
|
||||||
|
[app:healthcheck]
|
||||||
|
paste.app_factory = oslo_middleware:Healthcheck.app_factory
|
||||||
|
backends = disable_by_file
|
||||||
|
disable_by_file_path = /etc/sahara/healthcheck_disable
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Now healthcheck middleware is enabled by default. Applications like
|
||||||
|
loadbalancer or monitoring tools can use ``/healthcheck`` path to monitor
|
||||||
|
health of each API endpoints. Remove entries for healthcheck from
|
||||||
|
``api-paste.ini`` to disable this functionality.
|
|
@ -7,6 +7,7 @@ namespace = oslo.db
|
||||||
namespace = oslo.log
|
namespace = oslo.log
|
||||||
namespace = oslo.messaging
|
namespace = oslo.messaging
|
||||||
namespace = oslo.middleware.cors
|
namespace = oslo.middleware.cors
|
||||||
|
namespace = oslo.middleware.healthcheck
|
||||||
namespace = oslo.middleware.http_proxy_to_wsgi
|
namespace = oslo.middleware.http_proxy_to_wsgi
|
||||||
namespace = oslo.policy
|
namespace = oslo.policy
|
||||||
namespace = oslo.service.periodic_task
|
namespace = oslo.service.periodic_task
|
||||||
|
|
Loading…
Reference in New Issue