Riak Mesos Framework Director

July 8, 2016 ยท View on GitHub

Due to the nature of Apache Mesos and the potential for Riak nodes to come and go on a regular basis, client applications using a Mesos based cluster must be kept up to date on the cluster's current state. Instead of requiring this intelligence to be built into Riak client libraries, a smart proxy application named Director has been created which can run alongside client applications.

The Director communicates with Zookeeper to keep up to date with Riak cluster changes. The Director in turn will update it's list of balanced Riak connections.

HTTP API

After locating your Director's address in Mesos, the HTTP API can be utilized:

NameMethodPathDescription
statusGET/statusDisplay current information about the director
configurePUT/frameworks/{framework}/clusters/{cluster}Changes the framework and cluster names
listFrameworksGET/frameworksLists the currently known Riak Mesos Framework instances
listClustersGET/clustersLists the clusters for the configured framework
listNodesGET/nodesLists the nodes for the configured cluster
healthCheckGET/healthSimple status check for other services like Marathon