trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1103204 - in /trafficserver/traffic/trunk/mgmt/web2: WebOverview.cc WebOverview.h
Date Sat, 14 May 2011 20:17:04 GMT
Author: zwoop
Date: Sat May 14 20:17:04 2011
New Revision: 1103204

URL: http://svn.apache.org/viewvc?rev=1103204&view=rev
Log:
Cleanup of old junk, that should have been removed earlier

Modified:
    trafficserver/traffic/trunk/mgmt/web2/WebOverview.cc
    trafficserver/traffic/trunk/mgmt/web2/WebOverview.h

Modified: trafficserver/traffic/trunk/mgmt/web2/WebOverview.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/mgmt/web2/WebOverview.cc?rev=1103204&r1=1103203&r2=1103204&view=diff
==============================================================================
--- trafficserver/traffic/trunk/mgmt/web2/WebOverview.cc (original)
+++ trafficserver/traffic/trunk/mgmt/web2/WebOverview.cc Sat May 14 20:17:04 2011
@@ -1460,83 +1460,6 @@ AgFloat_generic_scale_to_int(const char 
   }
 }
 
-
-// void overviewPage::doClusterAg()
-//
-//   Aggregate data for cluster records
-//
-void
-overviewPage::doClusterAg()
-{
-
-  ink_mutex_acquire(&accessLock);
-
-
-  // DNS
-  clusterAgFloat("proxy.cluster.dns.lookups_per_second", "proxy.node.dns.lookups_per_second");
-  clusterAgInt("proxy.cluster.dns.total_dns_lookups", "proxy.node.dns.total_dns_lookups");
-  // HTTP
-  clusterAgInt("proxy.cluster.http.throughput", "proxy.node.http.throughput");
-
-  clusterAgFloat("proxy.cluster.http.user_agent_xacts_per_second", "proxy.node.http.user_agent_xacts_per_second");
-
-  clusterAgInt("proxy.cluster.http.user_agent_current_connections_count",
-               "proxy.node.http.user_agent_current_connections_count");
-  clusterAgInt("proxy.cluster.http.origin_server_current_connections_count",
-               "proxy.node.http.origin_server_current_connections_count");
-  clusterAgInt("proxy.cluster.http.cache_current_connections_count", "proxy.node.http.cache_current_connections_count");
-
-  clusterAgInt("proxy.cluster.http.current_parent_proxy_connections",
-               "proxy.node.http.current_parent_proxy_connections");
-
-  clusterAgInt("proxy.cluster.http.user_agent_total_request_bytes", "proxy.node.http.user_agent_total_request_bytes");
-  clusterAgInt("proxy.cluster.http.user_agent_total_response_bytes", "proxy.node.http.user_agent_total_response_bytes");
-  clusterAgInt("proxy.cluster.http.origin_server_total_request_bytes",
-               "proxy.node.http.origin_server_total_request_bytes");
-  clusterAgInt("proxy.cluster.http.origin_server_total_response_bytes",
-               "proxy.node.http.origin_server_total_response_bytes");
-  clusterAgInt("proxy.cluster.http.parent_proxy_total_request_bytes",
-               "proxy.node.http.parent_proxy_total_request_bytes");
-  clusterAgInt("proxy.cluster.http.parent_proxy_total_response_bytes",
-               "proxy.node.http.parent_proxy_total_response_bytes");
-
-  clusterAgInt("proxy.cluster.http.user_agents_total_transactions_count",
-               "proxy.node.http.user_agents_total_transactions_count");
-  clusterAgInt("proxy.cluster.http.user_agents_total_documents_served",
-               "proxy.node.http.user_agents_total_documents_served");
-  clusterAgInt("proxy.cluster.http.origin_server_total_transactions_count",
-               "proxy.node.http.origin_server_total_transactions_count");
-
-  // Cache
-  clusterAgInt("proxy.cluster.cache.bytes_free", "proxy.node.cache.bytes_free");
-  clusterAgIntScale("proxy.cluster.cache.bytes_free_mb", "proxy.node.cache.bytes_free", MB_SCALE);
-  clusterAgInt("proxy.cluster.cache.contents.num_docs", "proxy.node.cache.contents.num_docs");
-
-  this->agHostdbHitRate();
-  this->agCacheHitRate();
-  this->agCachePercentFree();
-  this->agBandwidthHitRate();
-  this->agConnections();
-
-  // Overall
-  clusterAgFloat("proxy.cluster.client_throughput_out", "proxy.node.client_throughput_out");
-
-  // FIXME
-  clusterAgFloat("proxy.cluster.user_agent_xacts_per_second", "proxy.node.user_agent_xacts_per_second");
-
-  AgFloat_generic_scale_to_int("proxy.cluster.client_throughput_out",
-                               "proxy.cluster.client_throughput_out_kbit", MBIT_TO_KBIT_SCALE);
-  AgFloat_generic_scale_to_int("proxy.cluster.cache_hit_ratio",
-                               "proxy.cluster.cache_hit_ratio_int_pct", PCT_TO_INTPCT_SCALE);
-  AgFloat_generic_scale_to_int("proxy.cluster.bandwidth_hit_ratio",
-                               "proxy.cluster.bandwidth_hit_ratio_int_pct", PCT_TO_INTPCT_SCALE);
-  AgFloat_generic_scale_to_int("proxy.cluster.hostdb.hit_ratio",
-                               "proxy.cluster.hostdb.hit_ratio_int_pct", PCT_TO_INTPCT_SCALE);
-  AgFloat_generic_scale_to_int("proxy.cluster.cache.percent_free",
-                               "proxy.cluster.cache.percent_free_int_pct", PCT_TO_INTPCT_SCALE);
-  ink_mutex_release(&accessLock);
-}
-
 // char* overviewPage::resolvePeerHostname(char* peerIP)
 //
 //   A locking interface to overviewPage::resolvePeerHostname_ml

Modified: trafficserver/traffic/trunk/mgmt/web2/WebOverview.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/mgmt/web2/WebOverview.h?rev=1103204&r1=1103203&r2=1103204&view=diff
==============================================================================
--- trafficserver/traffic/trunk/mgmt/web2/WebOverview.h (original)
+++ trafficserver/traffic/trunk/mgmt/web2/WebOverview.h Sat May 14 20:17:04 2011
@@ -132,7 +132,6 @@ public:
   MgmtInt readInteger(const char *nodeName, const char *name, bool * found = NULL);
   MgmtFloat readFloat(const char *nodeName, const char *name, bool * found = NULL);
   MgmtString readString(const char *nodeName, const char *name, bool * found = NULL);
-  void doClusterAg();
   void addSelfRecord();
 
   int varClusterFloatFromName(char *, MgmtFloat *);



Mime
View raw message