libmantle
 All Classes Files Functions Typedefs Pages
Classes | Typedefs
Mantle.h File Reference

API for the load balancing microservice. More...

#include <lua.hpp>
#include <list>
#include <map>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  Mantle
 

Typedefs

typedef double Load
 load metric, calculated using the load callback
 
typedef string Policy
 Lua script containing the logic.
 
typedef int32_t Server
 server name (e.g., MPI rank, MDS name)
 
typedef map< std::string, Load > ServerMetrics
 measurements used by policies (and populated by the service)
 
typedef vector< ServerMetrics > ClusterMetrics
 measurements of every server in the cluster
 
typedef map< Server, Load > Targets
 describes which target server to send load to (see where callback)
 

Detailed Description

API for the load balancing microservice.

Copyright (C) 2016 Michael Sevilla mikes.nosp@m.evil.nosp@m.la3@g.nosp@m.mail.nosp@m..com

This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1, as published by the Free Software Foundation. See file COPYING.