#include "logical_blocks_scheduler.hh"
#include "../messages/blockinfo.hh"
#include "../common/context_singleton.hh"
#include <algorithm>
#include <functional>
#include <set>
Macros | |
#define | MIN_BLOCK_SIZE (1 << 25) |
Typedefs | |
using | VEC_STR = std::vector< std::string > |
using | VEC_DOUBLE = std::vector< double > |
using | VEC_INT = std::vector< int > |
using | VEC_STATS = std::vector< std::pair< double, int >> |
Functions | |
vector< uint32_t > | get_replicas_id (VEC_STR nodes, string node) |
double | score (VEC_STATS &stats, VEC_DOUBLE &usage, double alpha, int id) |
int | get_highest_id (VEC_STATS &stats, VEC_DOUBLE &usage, VEC_STR hosts, string host, double alpha) |
#define MIN_BLOCK_SIZE (1 << 25) |
using VEC_DOUBLE = std::vector<double> |
using VEC_INT = std::vector<int> |
using VEC_STATS = std::vector<std::pair<double,int>> |
using VEC_STR = std::vector<std::string> |
int get_highest_id | ( | VEC_STATS & | stats, |
VEC_DOUBLE & | usage, | ||
VEC_STR | hosts, | ||
string | host, | ||
double | alpha | ||
) |
vector<uint32_t> get_replicas_id | ( | VEC_STR | nodes, |
string | node | ||
) |
double score | ( | VEC_STATS & | stats, |
VEC_DOUBLE & | usage, | ||
double | alpha, | ||
int | id | ||
) |