![Major Hayden](/assets/img/avatar_default.png)
The health check requests from haproxy cause uwsgi to write a lot of useless log lines. This can make it more difficult to find a problem with a particular service. This patch adds a route to look for the `osa-haproxy-healthcheck` user agent string, which haproxy uses when performing health checks. Any requests with that user agent are not logged. Closes-Bug: 1742718 Change-Id: Ia163d1686274bd3b80a046a945fb7d7ceb5f721c
24 lines
697 B
Django/Jinja
24 lines
697 B
Django/Jinja
# {{ ansible_managed }}
|
|
[uwsgi]
|
|
uid = {{ keystone_system_user_name }}
|
|
gid = {{ keystone_system_group_name }}
|
|
|
|
virtualenv = /openstack/venvs/keystone-{{ keystone_venv_tag }}
|
|
wsgi-file = {{ keystone_bin }}/{{ item }}
|
|
http = :{{ keystone_uwsgi_ports[item]['http'] }}
|
|
socket = 127.0.0.1:{{ keystone_uwsgi_ports[item]['socket'] }}
|
|
|
|
master = true
|
|
enable-threads = true
|
|
processes = {{ keystone_wsgi_processes }}
|
|
threads = {{ keystone_wsgi_threads }}
|
|
exit-on-reload = true
|
|
die-on-term = true
|
|
lazy-apps = true
|
|
add-header = Connection: close
|
|
buffer-size = 65535
|
|
thunder-lock = true
|
|
|
|
# Avoid filling up the logs with health check requests from haproxy.
|
|
route-user-agent = ^osa-haproxy-healthcheck$ donotlog:
|