fb5c7c1fe1
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: I1a452a627aaa49adc23aa9a7e30a9d27bddac2fb
24 lines
733 B
Django/Jinja
24 lines
733 B
Django/Jinja
[uwsgi]
|
|
uid = {{ cinder_system_user_name }}
|
|
gid = {{ cinder_system_group_name }}
|
|
|
|
virtualenv = /openstack/venvs/cinder-{{ cinder_venv_tag }}
|
|
wsgi-file = {{ cinder_bin }}/{{ item.wsgi_name }}
|
|
http = {{ item.uwsgi_bind_address }}:{{ item.uwsgi_port }}
|
|
|
|
master = true
|
|
enable-threads = true
|
|
processes = {{ cinder_wsgi_processes }}
|
|
threads = {{ cinder_wsgi_threads }}
|
|
exit-on-reload = false
|
|
die-on-term = true
|
|
lazy-apps = true
|
|
add-header = Connection: close
|
|
buffer-size = {{ cinder_wsgi_buffer_size }}
|
|
thunder-lock = true
|
|
logfile-chmod = 644
|
|
pidfile = /var/run/{{ item.service_name }}/{{ item.service_name }}.pid
|
|
|
|
# Avoid filling up the logs with health check requests from haproxy.
|
|
route-user-agent = ^osa-haproxy-healthcheck$ donotlog:
|