I am running opnsense 22.10
I have a couple of backend pools that use the same health monitor, one that every 300s checks if the port where postfix listens to haproxy-type traffic (this one gives the least overhead & logging junk, and is for me enough to know all services are up). But if I apply that monitor on three pools, one gets the correct 300s but the others get 30s for some reason.
#
# Automatically generated configuration.
# Do not edit this file manually.
#
global
uid 80
gid 80
chroot /var/haproxy
daemon
stats socket /var/run/haproxy.socket group proxy mode 775 level admin
nbproc 1
nbthread 1
hard-stop-after 60s
no strict-limits
tune.ssl.default-dh-param 2048
spread-checks 2
tune.bufsize 16384
tune.lua.maxmem 0
log /var/run/log local0 info
lua-prepend-path /tmp/haproxy/lua/?.lua
defaults
log global
option redispatch -1
timeout client 30s
timeout connect 30s
timeout check 10s
timeout server 30s
retries 3
default-server init-addr last,libc
# autogenerated entries for ACLs
# autogenerated entries for config in backends/frontends
# autogenerated entries for stats
# Frontend: smtpd-loadbalancing (Port 25 Load Balancing)
frontend smtpd-loadbalancing
bind 192.168.2.2:25 name 192.168.2.2:25
mode tcp
default_backend mail.rna.nl.991
# tuning options
timeout client 30s
# logging options
# Frontend: submission-loadbalancing (Port 587 Load Balancing)
frontend submission-loadbalancing
bind 192.168.2.2:587 name 192.168.2.2:587
mode tcp
default_backend mail.rna.nl.991
# tuning options
timeout client 30s
# logging options
# Frontend: imaps-loadbalancing (Port 993 Load Balancing)
frontend imaps-loadbalancing
bind 192.168.2.2:993 name 192.168.2.2:993
mode tcp
default_backend mail.rna.nl.994
# tuning options
timeout client 30s
# logging options
# Backend: mail.rna.nl.991 (postfix haproxy postscreen pool)
backend mail.rna.nl.991
option log-health-checks
# health check: port991-health-monitor
mode tcp
balance roundrobin
# tuning options
timeout connect 30s
timeout check 10s
timeout server 30s
server albus-991 192.168.2.66:991 check inter 30s port 991 send-proxy
server snape-991 192.168.2.125:991 check inter 30s port 991 send-proxy
# Backend: mail.rna.nl.990 (postfix haproxy submssion pool)
backend mail.rna.nl.990
option log-health-checks
# health check: port991-health-monitor
mode tcp
balance roundrobin
# tuning options
timeout connect 30s
timeout check 10s
timeout server 30s
server albus-990 192.168.2.66:990 check inter 300s port 991 send-proxy
server snape-990 192.168.2.125:990 check inter 300s port 991 send-proxy
# Backend: mail.rna.nl.994 (postfix haproxy imaps pool)
backend mail.rna.nl.994
option log-health-checks
# health check: port991-health-monitor
mode tcp
balance roundrobin
# tuning options
timeout connect 30s
timeout check 10s
timeout server 30s
server albus-994 192.168.2.66:994 check inter 30s port 991 send-proxy
server snape-994 192.168.2.125:994 check inter 30s port 991 send-proxy
Is this a bug in the HAproxy plugin? Or am I doing something wrong?
Never mind. After reading the code I double checked my settings and found out that in (hidden) advanced settings there were per-pool overrides.