Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. global
  2. log 127.0.0.1 local2 info
  3. chroot /var/lib/haproxy
  4. pidfile /var/run/haproxy.pid
  5. maxconn 256 # 4000
  6. user haproxy
  7. group haproxy
  8. daemon
  9. stats socket /var/lib/haproxy/stats
  10.  
  11. defaults
  12. mode http
  13. log global
  14. option httplog
  15. # option dontlognull
  16. # option http-server-close
  17. # option forwardfor except 127.0.0.0/8
  18. # option redispatch
  19. # retries 3
  20. # timeout http-request 10s
  21. # timeout queue 1m
  22. timeout connect 10s
  23. timeout client 30s #1m
  24. timeout server 30s #1m
  25. timeout http-keep-alive 10s
  26. # timeout check 10s
  27. # maxconn 3000
  28.  
  29. frontend http_front
  30. bind *:80
  31. default_backend http_back
  32. option forwardfor
  33.  
  34. backend http_back
  35. balance roundrobin
  36. server node01 192.168.99.144:32184
  37. server node02 192.168.99.142:32184
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement