Merge "adjust several parameters"

This commit is contained in:
Jenkins 2014-04-17 21:45:52 +00:00 committed by Gerrit Code Review
commit eadd742b79
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