You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ch...@apache.org on 2013/04/02 04:48:40 UTC

git commit: TS-1793 force cluster connection = cluster number for cluster thread balance

Updated Branches:
  refs/heads/master 727fbf717 -> c4b7b61d0


TS-1793  force cluster connection = cluster number for cluster thread balance


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/c4b7b61d
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/c4b7b61d
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/c4b7b61d

Branch: refs/heads/master
Commit: c4b7b61d0852bf67d87a48335b271135c3aa027e
Parents: 727fbf7
Author: Chen Bin <ku...@taobao.com>
Authored: Tue Apr 2 10:47:49 2013 +0800
Committer: Chen Bin <ku...@taobao.com>
Committed: Tue Apr 2 10:48:18 2013 +0800

----------------------------------------------------------------------
 iocore/cluster/ClusterMachine.cc |    2 +-
 mgmt/RecordsConfig.cc            |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c4b7b61d/iocore/cluster/ClusterMachine.cc
----------------------------------------------------------------------
diff --git a/iocore/cluster/ClusterMachine.cc b/iocore/cluster/ClusterMachine.cc
index 81a693b..e4ac7df 100644
--- a/iocore/cluster/ClusterMachine.cc
+++ b/iocore/cluster/ClusterMachine.cc
@@ -146,7 +146,7 @@ clusterHandlers(0)
   else
     hostname_len = 0;
 
-  REC_ReadConfigInteger(num_connections, "proxy.config.cluster.num_of_cluster_connections");
+  num_connections = eventProcessor.n_threads_for_type[ET_CLUSTER];
   clusterHandlers = (ClusterHandler **)ats_calloc(num_connections, sizeof(ClusterHandler *));
 }
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/c4b7b61d/mgmt/RecordsConfig.cc
----------------------------------------------------------------------
diff --git a/mgmt/RecordsConfig.cc b/mgmt/RecordsConfig.cc
index a09195d..9bdad55 100644
--- a/mgmt/RecordsConfig.cc
+++ b/mgmt/RecordsConfig.cc
@@ -853,8 +853,6 @@ RecordElement RecordsConfig[] = {
   //##############################################################################
   {RECT_CONFIG, "proxy.config.cluster.threads", RECD_INT, "1", RECU_RESTART_TS, RR_NULL, RECC_INT, "[0-512]", RECA_NULL}
   ,
-  {RECT_CONFIG, "proxy.config.cluster.num_of_cluster_connections", RECD_INT, "1", RECU_RESTART_TS, RR_NULL, RECC_INT, "[1-4096]", RECA_NULL}
-  ,
   {RECT_CONFIG, "proxy.config.cluster.cluster_port", RECD_INT, "8086", RECU_RESTART_TS, RR_REQUIRED, RECC_NULL, NULL, RECA_NULL}
   ,
   {RECT_CONFIG, "proxy.config.cluster.cluster_configuration", RECD_STRING, "cluster.config", RECU_NULL, RR_NULL, RECC_NULL, NULL, RECA_NULL}