Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
scheduler_vlmb.cc File Reference
#include "logical_blocks_scheduler.hh"
#include "../messages/blockinfo.hh"
#include "../common/context_singleton.hh"
#include <algorithm>
#include <functional>
#include <set>
Include dependency graph for scheduler_vlmb.cc:

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)
 

Macro Definition Documentation

#define MIN_BLOCK_SIZE   (1 << 25)

Typedef Documentation

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>

Function Documentation

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 
)