If you look around line 105 in cluster_view.php, you'll find these lines:
if ( isset($metrics[$host]["cpu_num"]['VAL']) and
$metrics[$host]["cpu_num"]['VAL'] != 0 ){
$cpus = $metrics[$host]["cpu_num"]['VAL'];
} else {
$cpus = 1;
}
if ( isset($metrics[$host]["load_one"]['VAL']) ){
$load_one = $metrics[$host]["load_one"]['VAL'];
} else {
$load_one = 0;
}
$load = ((float) $load_one)/$cpus;
$host_load[$host] = $load;
The load values should already normalized based on the CPU count for a
system. Does ganglia actually have the correct CPU count for that
host?
On Mon, Aug 3, 2009 at 10:18, Peter Doherty<[email protected]> wrote:
> I've looked for the answer to this question, but I can't find it. And
> I've looked through the code, but I couldn't figure out a way to make
> it happen there either.
> I've got a mix of clusters with various hardware, ranging from 2 cores
> per node to 8 cores per node.
> Currently ganglia displays the node as bright red if the node has a
> load over 2.0
> But I basically want the colors to be selected based on load divided
> by cores.
> A 2 core machine, with a load of 6 is overloaded. (And should display
> as red) An 8 core machine with a load of 6 isn't being fully
> utilized. (And should be some shade of yellow perhaps. Ideally I want
> a workload that keeps all nodes with load equal to their number of
> CPUs, this means they are being well used. I haven't bothered to
> tweak the actual colors until I can get the load/core division working
> correctly.)
> Can I change this behavior on a per cluster basis, or just put it
> right into the php so that it can calculate the relative load itself?
> The $load_scale variable affects all the clusters the same.
>
>
> Thanks for any tips.
> --Peter
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
--
Jesse Becker
GPG Fingerprint -- BD00 7AA4 4483 AFCC 82D0 2720 0083 0931 9A2B 06A2
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general