68 Policy when_callback, howmuch_callback, where_callback;
88 int when(
bool &decision);
106 int howmuch(
Load &decision);
int32_t Server
server name (e.g., MPI rank, MDS name)
Definition: Mantle.h:45
map< Server, Load > Targets
describes which target server to send load to (see where callback)
Definition: Mantle.h:60
Mantle(Server s)
Definition: Mantle.h:77
vector< ServerMetrics > ClusterMetrics
measurements of every server in the cluster
Definition: Mantle.h:55
map< std::string, Load > ServerMetrics
measurements used by policies (and populated by the service)
Definition: Mantle.h:50
string Policy
Lua script containing the logic.
Definition: Mantle.h:40
double Load
load metric, calculated using the load callback
Definition: Mantle.h:35