Logo
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

◆ MIN_BLOCK_SIZE

#define MIN_BLOCK_SIZE   (1 << 25)

Typedef Documentation

◆ VEC_DOUBLE

using VEC_DOUBLE = std::vector<double>

◆ VEC_INT

using VEC_INT = std::vector<int>

◆ VEC_STATS

using VEC_STATS = std::vector<std::pair<double,int> >

◆ VEC_STR

using VEC_STR = std::vector<std::string>

Function Documentation

◆ get_highest_id()

int get_highest_id ( VEC_STATS stats,
VEC_DOUBLE usage,
VEC_STR  hosts,
string  host,
double  alpha 
)

◆ get_replicas_id()

vector<uint32_t> get_replicas_id ( VEC_STR  nodes,
string  node 
)

◆ score()

double score ( VEC_STATS stats,
VEC_DOUBLE usage,
double  alpha,
int  id 
)