#include <BalanceAlgorithmLoad.h>
Classes | |
struct | GtRangeMetricSummary |
struct | GtServerMetricSummary |
class | RangeMetricSummary |
class | ServerMetricSummary |
Public Types | |
typedef std::multiset < ServerMetricSummary, GtServerMetricSummary > | ServerSetDescLoad |
typedef std::multiset < RangeMetricSummary, GtRangeMetricSummary > | RangeSetDescLoad |
Public Member Functions | |
BalanceAlgorithmLoad (ContextPtr &context, std::vector< RangeServerStatistics > &statistics) | |
virtual void | compute_plan (BalancePlanPtr &plan, std::vector< RangeServerConnectionPtr > &balanced) |
Private Types | |
typedef std::map< String, RangeServerStatistics > | StatisticsSet |
Private Member Functions | |
void | calculate_server_summary (const Lib::RS_METRICS::ServerMetrics &metrics, ServerMetricSummary &summary) |
void | calculate_range_summary (const Lib::RS_METRICS::RangeMetrics &metrics, RangeMetricSummary &summary) |
void | populate_range_load_set (const Lib::RS_METRICS::RangeMetricsMap &range_metrics, RangeSetDescLoad &ranges_desc_load) |
bool | check_move (const ServerMetricSummary &source, const ServerMetricSummary &destination, double range_loadestimate, double mean_loadavg) |
Private Attributes | |
StatisticsSet | m_rsstats |
double | m_loadavg_deviation_threshold |
ContextPtr | m_context |
Definition at line 41 of file BalanceAlgorithmLoad.h.
typedef std::multiset<RangeMetricSummary, GtRangeMetricSummary> Hypertable::BalanceAlgorithmLoad::RangeSetDescLoad |
Definition at line 92 of file BalanceAlgorithmLoad.h.
typedef std::multiset<ServerMetricSummary, GtServerMetricSummary> Hypertable::BalanceAlgorithmLoad::ServerSetDescLoad |
Definition at line 74 of file BalanceAlgorithmLoad.h.
|
private |
Definition at line 110 of file BalanceAlgorithmLoad.h.
BalanceAlgorithmLoad::BalanceAlgorithmLoad | ( | ContextPtr & | context, |
std::vector< RangeServerStatistics > & | statistics | ||
) |
Definition at line 33 of file BalanceAlgorithmLoad.cc.
|
private |
Definition at line 189 of file BalanceAlgorithmLoad.cc.
|
private |
Definition at line 166 of file BalanceAlgorithmLoad.cc.
|
private |
Definition at line 220 of file BalanceAlgorithmLoad.cc.
|
virtual |
Implements Hypertable::BalanceAlgorithm.
Definition at line 44 of file BalanceAlgorithmLoad.cc.
|
private |
Definition at line 207 of file BalanceAlgorithmLoad.cc.
|
private |
Definition at line 113 of file BalanceAlgorithmLoad.h.
|
private |
Definition at line 112 of file BalanceAlgorithmLoad.h.
|
private |
Definition at line 111 of file BalanceAlgorithmLoad.h.