On Wed, Apr 27, 2005 at 02:11:12PM -0700, Federico D. Sacerdoti wrote:
> The "showhosts off" is for use with very large clusters (SUNY 2000-node 
> one is an example). For those machines, just displaying the cluster 
> view can take tens of seconds.

190 nodes takes .3 seconds to parse according to the output at the
bottom of the page on my system and that's on a machine that's a few
years old.  Given that, I'm not buying tens of seconds unless
showhosts is on.

> With showhosts off, NONE of the host information is retrieved or 
> processed. All you get are the averages, and total number up or down. 
> For normal use (with smaller clusters) the showhosts switch is on and 
> the hosts drop down list operates as it should. Perhaps we should 
> disable the drop down list altogether when showhosts is off.

I'd really like to be able to get to a node via the dropdown without
having to render all the node images or table cells.  I don't care about
a few seconds of parsing time, what I care about is downloading all
those mostly useless images over a 144Kbps IDSL line with 60+ms RTTs
just to get a working list of nodes.  Perhaps we need more states.

> There seem to be quite a few questions about the code of the 
> webfrontend. Would people like a design document? Otherwise I am happy 
> to answer any other questions this list may have. Please keep in mind 
> some aspects of the webfrontend are intended for large clusters/grids, 
> and are not obvious when used with smaller setups.

That would be nice.

-- Brooks

> -Federico
> 
> On Apr 27, 2005, at 1:42 PM, Brooks Davis wrote:
> 
> >One issue with the webfront end that has annoyed me for a while is that
> >the "Choose a Node" dropdown is empty when showhosts is off.  The
> >following patch fixes that for me and decrease the differences between
> >the two cases as well.  Is there any reason this change is a bad idea?
> >I don't notice any obvious performance impact on a cluster with 190
> >node currently online so I don't think that's an issue.
> >
> >-- Brooks
> >
> >
> >$FreeBSD: ports/sysutils/ganglia-webfrontend/files/patch-ganglia.php,v 
> >1.1 2005/04/27 20:36:33 brooks Exp $
> >
> >--- ganglia.php.orig
> >+++ ganglia.php
> >@@ -260,8 +260,8 @@
> >             $request = "/$clustername";
> >              break;
> >          case "cluster-summary":
> >-            xml_set_element_handler($parser, "start_cluster_summary", 
> >"end_all");
> >-            $request = "/$clustername?filter=summary";
> >+            xml_set_element_handler($parser, "start_cluster", 
> >"end_all");
> >+            $request = "/$clustername";
> >             break;
> >          case "node":
> >          case "host":
> >
> >$FreeBSD: 
> >ports/sysutils/ganglia-webfrontend/files/patch-cluster__view.php,v 1.1 
> >2005/04/27 20:36:33 brooks Exp $
> >
> >--- cluster_view.php.orig
> >+++ cluster_view.php
> >@@ -6,11 +6,11 @@
> >
> > $tpl->assign("images","./templates/$template_name/images");
> >
> >-$cpu_num = !$showhosts ? $metrics["cpu_num"][SUM] : 
> >cluster_sum("cpu_num", $metrics);
> >-$load_one_sum = !$showhosts ? $metrics["load_one"][SUM] : 
> >cluster_sum("load_one", $metrics);
> >-$load_five_sum = !$showhosts ? $metrics["load_five"][SUM] : 
> >cluster_sum("load_five", $metrics);
> >-$load_fifteen_sum = !$showhosts ? $metrics["load_fifteen"][SUM] : 
> >cluster_sum("load_fifteen", $metrics);
> >-$units = !$showhosts ? $metrics[$metricname][UNITS] : 
> >$metrics[key($metrics)][$metricname][UNITS];
> >+$cpu_num = cluster_sum("cpu_num", $metrics);
> >+$load_one_sum = cluster_sum("load_one", $metrics);
> >+$load_five_sum = cluster_sum("load_five", $metrics);
> >+$load_fifteen_sum = cluster_sum("load_fifteen", $metrics);
> >+$units = $metrics[key($metrics)][$metricname][UNITS];
> >
> > $tpl->assign("num_nodes", intval($cluster[HOSTS_UP]));
> > $tpl->assign("num_dead_nodes", intval($cluster[HOSTS_DOWN]));
> >
> >-- 
> >Any statement of the form "X is the one, true Y" is FALSE.
> >PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
> >
> Federico
> 
> Rocks Cluster Group, San Diego Supercomputer Center, CA
-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

Attachment: pgpMZaAcUmHit.pgp
Description: PGP signature

Reply via email to