Merge "Enable healthcheck middleware by default"

This commit is contained in:
Zuul 2021-10-26 16:41:24 +00:00 committed by Gerrit Code Review
commit 26826269dc
3 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@ pipeline = cors http_proxy_to_wsgi request_id versions acl auth_validator sahara
[composite:sahara_api]
use = egg:Paste#urlmap
/healthcheck: healthcheck
/: sahara_apiv2
# 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
#[filter:versions]
#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

View File

@ -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.

View File

@ -7,6 +7,7 @@ namespace = oslo.db
namespace = oslo.log
namespace = oslo.messaging
namespace = oslo.middleware.cors
namespace = oslo.middleware.healthcheck
namespace = oslo.middleware.http_proxy_to_wsgi
namespace = oslo.policy
namespace = oslo.service.periodic_task