Remove deprecated 'stats bind-process' directive

This directive is deprecated in haproxy 2.5. See
https://docs.haproxy.org/2.5/configuration.html#3.1-stats%20bind-process

Change-Id: I600e6a07d14deb10823ebe005ac417a601930f68
This commit is contained in:
Jonathan Rosser 2024-08-07 15:14:20 +01:00
parent f0370a1699
commit 1c9703bf30
2 changed files with 0 additions and 9 deletions

View File

@ -39,9 +39,6 @@ haproxy_stats_refresh_interval: 60
# Prometheus stats are supported from HAProxy v2
# Stats must be enabled above before this can be used
haproxy_stats_prometheus_enabled: False
# Pin stats gathering to one or more processes when using 'nbproc' tuning
# For permitted options see https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#3.1-stats%20bind-process
# haproxy_stats_process: all
# Default haproxy backup nodes to empty list so this doesn't have to be
# defined for each service.

View File

@ -11,9 +11,6 @@ global
{{ key }} {{ value }}
{% endfor %}
stats socket /var/run/haproxy.stat level admin mode 600
{% if haproxy_stats_process is defined %}
stats bind-process {{ haproxy_stats_process }}
{% endif %}
{% if haproxy_ssl | bool %}
ssl-default-bind-options {{ haproxy_ssl_bind_options }}
ssl-default-server-options {{ haproxy_ssl_server_options }}
@ -44,9 +41,6 @@ defaults
listen stats
bind {{ haproxy_stats_bind_address }}:{{ haproxy_stats_port }} {% if haproxy_stats_ssl | bool %}ssl crt {{ haproxy_stats_ssl_cert_path | default(haproxy_ssl_path) }} {% if haproxy_stats_ssl_client_cert_ca is defined %}verify required ca-file {{ haproxy_stats_ssl_client_cert_ca }}{% endif %}{% endif %}
{% if haproxy_stats_process is defined %}
bind-process {{ haproxy_stats_process }}
{% endif %}
mode http
{% if haproxy_stats_prometheus_enabled | bool %}
http-request use-service prometheus-exporter if { path /metrics }