[quote="Normal"]global
maxconn 4096
nbproc 2
defaults
mode http
clitimeout 150000
srvtimeout 30000
contimeout 4000
balance roundrobin
stats enable
stats uri /haproxy?stats
frontend couchdb_lb
bind 10.2.226.132:7000
acl master_methods method POST DELETE PUT
use_backend master_backend if master_methods
default_backend slave_backend
backend master_backend
server em133 10.2.226.133:3080 weight 1 maxconn 512 check
backend slave_backend
server em134 10.2.226.134:3080 weight 1 maxconn 512 check
server em135 10.2.226.135:3080 weight 1 maxconn 512 check[/quote]
下面这个配置我觉得我用的很灵活,很有想法,MapReduce:)
文初第一次用Haproxy时说这玩意可以替代SIP了。
[quote="通过Haproxy实现CouchDB主备节点读写分离"]global
maxconn 4096
nbproc 2
defaults
mode http
clitimeout 150000
srvtimeout 30000
contimeout 4000
balance roundrobin
stats enable
stats uri /haproxy?stats
frontend couchdb_lb
bind 10.2.226.132:5984
acl master_methods method POST DELETE PUT
use_backend master_backend if master_methods
default_backend slave_backend
backend master_backend
server em133 10.2.226.133:5984 weight 1 maxconn 512 check
backend slave_backend
server em134 10.2.226.134:5984 weight 1 maxconn 512 check[/quote]
[quote="ISP性能测试节点集群"]global
maxconn 60000
nbproc 4
daemon
quiet
defaults
mode http
clitimeout 120000
srvtimeout 30000
contimeout 4000
balance roundrobin
listen isp_cluster 0.0.0.0:6688
mode http
stats enable
stats uri /ha?stats
balance roundrobin
server isp132 10.2.226.132:6080 weight 1 maxconn 15000 check
server isp133 10.2.226.133:6080 weight 1 maxconn 15000 check
server isp134 10.2.226.134:6080 weight 1 maxconn 15000 check
server isp135 10.2.226.135:6080 weight 1 maxconn 15000 check[/quote]
maxconn 4096
nbproc 2
defaults
mode http
clitimeout 150000
srvtimeout 30000
contimeout 4000
balance roundrobin
stats enable
stats uri /haproxy?stats
frontend couchdb_lb
bind 10.2.226.132:7000
acl master_methods method POST DELETE PUT
use_backend master_backend if master_methods
default_backend slave_backend
backend master_backend
server em133 10.2.226.133:3080 weight 1 maxconn 512 check
backend slave_backend
server em134 10.2.226.134:3080 weight 1 maxconn 512 check
server em135 10.2.226.135:3080 weight 1 maxconn 512 check[/quote]
下面这个配置我觉得我用的很灵活,很有想法,MapReduce:)
文初第一次用Haproxy时说这玩意可以替代SIP了。
[quote="通过Haproxy实现CouchDB主备节点读写分离"]global
maxconn 4096
nbproc 2
defaults
mode http
clitimeout 150000
srvtimeout 30000
contimeout 4000
balance roundrobin
stats enable
stats uri /haproxy?stats
frontend couchdb_lb
bind 10.2.226.132:5984
acl master_methods method POST DELETE PUT
use_backend master_backend if master_methods
default_backend slave_backend
backend master_backend
server em133 10.2.226.133:5984 weight 1 maxconn 512 check
backend slave_backend
server em134 10.2.226.134:5984 weight 1 maxconn 512 check[/quote]
[quote="ISP性能测试节点集群"]global
maxconn 60000
nbproc 4
daemon
quiet
defaults
mode http
clitimeout 120000
srvtimeout 30000
contimeout 4000
balance roundrobin
listen isp_cluster 0.0.0.0:6688
mode http
stats enable
stats uri /ha?stats
balance roundrobin
server isp132 10.2.226.132:6080 weight 1 maxconn 15000 check
server isp133 10.2.226.133:6080 weight 1 maxconn 15000 check
server isp134 10.2.226.134:6080 weight 1 maxconn 15000 check
server isp135 10.2.226.135:6080 weight 1 maxconn 15000 check[/quote]