adjust several parameters

Change-Id: Ib8119d1c7ec14f06da1efcbeabba154eacabb0a4
This commit is contained in:
SamSu 2014-04-16 18:03:36 -07:00
parent 3eb7f044b4
commit 26de3be603
3 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,7 @@ default['haproxy']['cookie'] = nil
default['haproxy']['user'] = "haproxy"
default['haproxy']['group'] = "haproxy"
default['haproxy']['global_max_connections'] = 4096
default['haproxy']['global_max_connections'] = 8192
default['haproxy']['member_max_connections'] = 100
default['haproxy']['frontend_max_connections'] = 2000
default['haproxy']['frontend_ssl_max_connections'] = 2000

View File

@ -33,9 +33,9 @@ end
mydata = data_bag_item(defaultbag, myitem)
if mydata['ha']['status'].eql?('enable')
node.set['haproxy']['enabled_services'] = nil
node.set['haproxy']['incoming_address'] = mydata['ha']['haproxy']['vip']
#services = node['haproxy']['enabled_services'].clone
mydata['ha']['haproxy']['roles'].each do |role, services|
services.each do |service|
node.set['haproxy']['services'][service]['role'] = role

View File

@ -2,6 +2,7 @@ global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
daemon
maxconn <%= node['haproxy']['global_max_connections'] %>
#debug
#quiet