public class DefaultHostScoringRule extends Object implements IHostScoringRule
(1d + cpu_wio * 100d) / (1d + cpu_idle)
Note: Not all platforms report all metrics. For example, OSX does not report IO Wait, which is a key metric for the workload of a database. If a metric is not available for a host, then a fallback value is used.
HAJournalService
per host. It is also available from the
/bigdata/counters
and could be exposed as a JMX MBean.Constructor and Description |
---|
DefaultHostScoringRule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getMetricNames()
Return the set of metric names that are used by this scoring rule.
|
double |
getScore(IHostMetrics metrics)
Return a score for the given
IHostMetrics . |
public String[] getMetricNames()
IHostScoringRule
getMetricNames
in interface IHostScoringRule
public double getScore(IHostMetrics metrics)
IHostScoringRule
IHostMetrics
.getScore
in interface IHostScoringRule
metrics
- The IHostMetrics
.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.