Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Problem stats second backend

$
0
0

Hi,

I have a problem with the stats on my second backend, first i have this error “Layer7 invalid response: TCPCHK got an empty response at step 2” follow by “socket error” :slight_smile:

My configuration file :

global
    log /var/log/haproxy local5 debug
    chroot /var/lib/haproxy
	stats socket /run/haproxy/admin.sock mode 660 level admin
    stats timeout 30s
    user haproxy
    group haproxy
    daemon

defaults
	log global
	mode http
	option httplog
	option dontlognull
	timeout connect 5000
	timeout client 50000
	timeout server 50000
	errorfile 400 /etc/haproxy/errors/400.http

listen stats
	bind  :9000
	mode  http
	stats enable
	stats show-node
	stats hide-version
	stats realm HAproxy-ldap-pprime
	stats uri /stats
	stats refresh 1m
	stats auth infra:<%=@passwd_haproxy_stats%>

frontend example_front
    bind :389
    bind :636
    mode tcp
    option tcplog
    log global
    use_backend example1_back if { dst_port 389 }
    use_backend example2_back if { dst_port 636 }

backend example1_back
	mode tcp
	balance roundrobin
	option ldap-check
	server example1 <%=@ldap_ip%>:389 check
	server example2 <%=@ldapbis_ip%>:389 check

backend example2_back
	mode tcp
	balance roundrobin
	option ldap-check
	server example1 <%=@ldap_ip%>:636 check
	server example2 <%=@ldapbis_ip%>:636 check

I don’t understand why the fisrt work but not the second ?

Thanks for the help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>