Created
January 11, 2013 02:02
-
-
Save goncha/4507349 to your computer and use it in GitHub Desktop.
Haproxy and syslog sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log /dev/log local0 info | |
#log loghost local0 info | |
maxconn 1024 | |
#chroot /home/app/var/haproxy | |
user app | |
group users | |
daemon | |
pidfile /home/app/var/haproxy.pid | |
stats socket /home/app/var/haproxy.sock | |
#debug | |
#quiet | |
defaults | |
log global | |
mode tcp | |
retries 3 | |
maxconn 1024 | |
contimeout 5000 | |
clitimeout 50000 | |
srvtimeout 50000 | |
balance roundrobin | |
# nginx servers for benchmark | |
listen nginx *:7002 | |
mode http | |
option httplog | |
# option logasap | |
server inst1 chengang2:7101 | |
server inst2 chengang2:7102 | |
server inst3 chengang2:7103 | |
# tomcat servers from benchmark | |
listen tomcat *:8000 | |
mode http | |
option httplog | |
# option logasap | |
capture request header User-Agent len 60 | |
server inst1 chengang2:8002 | |
server inst2 chengang3:8002 | |
# statistics | |
listen stats *:7001 | |
mode http | |
stats enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Haproxy use local0 | |
local0.* @@1.1.2.200:1514 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment