Permalink
Browse files

Enh: allow to set `MAX_NUM_APPL_SERVER` and `MIN_NUM_APPL_SERVER` SHA…

…RD broker configuration parameters.
  • Loading branch information...
1 parent c456db3 commit 44ee3762872fe4ad9167c956249699946ce23a31 @kadishmal committed Mar 28, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −7 templates/default/shard.conf.erb
@@ -25,24 +25,24 @@ ADMIN_LOG_FILE =log/broker/cubrid_broker.log
[%shard]
SERVICE =ON
BROKER_PORT =<%= "#{node['cubrid']['shard_broker_port']}" %>
-MIN_NUM_APPL_SERVER =1
-MAX_NUM_APPL_SERVER =1
+MIN_NUM_APPL_SERVER =<%= node['cubrid']['shard_hosts'].size * 3 %>
+MAX_NUM_APPL_SERVER =<%= node['cubrid']['shard_hosts'].size * 3 * 2 %>
APPL_SERVER_SHM_ID =<%= "#{node['cubrid']['shard_broker_port']}" %>
LOG_DIR =log/broker/sql_log
ERROR_LOG_DIR =log/broker/error_log
SQL_LOG =ON
TIME_TO_KILL =120
SESSION_TIMEOUT =300
KEEP_CONNECTION =ON
-SHARD_DB_NAME =<%= "#{node['cubrid']['shard_db']}" %>
-SHARD_DB_USER =<%= "#{node['cubrid']['shard_user']}" %>
-SHARD_DB_PASSWORD =<%= "#{node['cubrid']['shard_user_password']}" %>
+SHARD_DB_NAME =<%= "#{node['cubrid']['shard_db']}" %>
+SHARD_DB_USER =<%= "#{node['cubrid']['shard_user']}" %>
+SHARD_DB_PASSWORD =<%= "#{node['cubrid']['shard_user_password']}" %>
MIN_NUM_PROXY =1
MAX_NUM_PROXY =1
PROXY_LOG_FILE =log/broker/proxy_log
PROXY_LOG =ALL
MAX_CLIENT =10
METADATA_SHM_ID =45092
-SHARD_CONNECTION_FILE =shard_connection.txt
-SHARD_KEY_FILE =shard_key.txt
+SHARD_CONNECTION_FILE =shard_connection.txt
+SHARD_KEY_FILE =shard_key.txt

0 comments on commit 44ee376

Please sign in to comment.