e5e0aa48e3
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: I2a1786e2197fbb0fa77e78b94e0c5ff7f4afc8fb
23 lines
673 B
Django/Jinja
23 lines
673 B
Django/Jinja
[uwsgi]
|
|
uid = {{ ironic_system_user_name }}
|
|
gid = {{ ironic_system_group_name }}
|
|
|
|
virtualenv = /openstack/venvs/ironic-{{ ironic_venv_tag }}
|
|
wsgi-file = {{ ironic_bin }}/{{ item.wsgi_name }}.wsgi
|
|
http-socket = {{ item.uwsgi_bind_address }}:{{ item.uwsgi_port }}
|
|
|
|
master = true
|
|
enable-threads = true
|
|
processes = {{ ironic_wsgi_processes }}
|
|
threads = {{ ironic_wsgi_threads }}
|
|
exit-on-reload = true
|
|
die-on-term = true
|
|
lazy-apps = true
|
|
add-header = Connection: close
|
|
buffer-size = {{ ironic_wsgi_buffer_size }}
|
|
thunder-lock = true
|
|
logfile-chmod = 644
|
|
|
|
# Avoid filling up the logs with health check requests from haproxy.
|
|
route-user-agent = ^osa-haproxy-healthcheck$ donotlog:
|