歡迎您光臨本站 註冊首頁

Haproxy 線上配置文檔

←手機掃碼閱讀     火星人 @ 2014-03-08 , reply:0

Haproxy 某項目線上配置文檔

  1. $ cat /usr/local/haproxy/haproxy.cfg
  2. global
  3. maxconn 32000
  4. pidfile /usr/local/haproxy/haproxy.pid
  5. chroot /usr/local/haproxy
  6. uid 504
  7. gid 504
  8. daemon
  9. quiet
  10. nbproc 1
  11. defaults
  12. log global
  13. mode http
  14. option httplog
  15. option dontlognull
  16. retries 3
  17. #option redispatch
  18. maxconn 10000
  19. contimeout 5000
  20. clitimeout 50000
  21. srvtimeout 50000
  22. listen tongji 0.0.0.0:80
  23. mode http
  24. option httplog
  25. option dontlognull
  26. cookie SERVERID
  27. balance roundrobin
  28. option httpchk HEAD /check.html HTTP/1.0
  29. option forwardfor
  30. stats uri /haproxy_stats_url
  31. stats auth admin:password
  32. errorfile 502 /usr/local/haproxy/html/maintain.html
  33. errorfile 503 /usr/local/haproxy/html/maintain.html
  34. errorfile 504 /usr/local/haproxy/html/maintain.html
  35. server city01 10.10.100.61 cookie city01 check inter 2000 rise 2 fall 3
  36. server city02 10.10.100.62 cookie city02 check inter 2000 rise 2 fall 3

詳細解釋,請參考這裡.

http://dngood.blog.51cto.com/446195/738634

本文出自 「dongnan」 博客,請務必保留此出處http://dngood.blog.51cto.com/446195/819411


[火星人 ] Haproxy 線上配置文檔已經有272次圍觀

http://coctec.com/docs/linux/show-post-45980.html