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

Information on logging

$
0
0

hi,
I am trying to do a haproxy setup with PostgreSQL and Patroni. Following is my configuration.

global
log stdout local0 info

defaults
log global
mode http
option httplog
timeout client 10s
timeout connect 5s
timeout server 10s
timeout http-request 10s

listen stats
mode http
bind *:7000
stats enable
stats uri /

listen pgReadWrite
bind *:5000
option pgsql-check user postgres
default-server inter 3s fall 3
server is1 is1:5432 check port 5432
server is2 is2:5432 check port 5432

listen pgReadOnly
bind *:5001
option pgsql-check user postgres
default-server inter 3s fall 3
server is1 is1:5432 check port 5432
server is2 is2:5432 check port 5432

When I execute psql command with -p 5000/5001 option it is not returning any error/success. Also I am not able to get log from haproxy whether the DB connection is proper. Is there any way to update the log level(to get more logs) in order to debug this issue? thank you for the support in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



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