Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/att-innovate/charmander

Charmander Scheduler Lab - Mesos, Docker, InfluxDB, Spark
https://github.com/att-innovate/charmander

Last synced: 6 days ago
JSON representation

Charmander Scheduler Lab - Mesos, Docker, InfluxDB, Spark

Awesome Lists containing this project

README

        

Charmander Scheduler Lab
------------------------

Charmander is a lab environment for measuring and analyzing resource-scheduling algorithms.

The project got started in Summer 2014 by Theodora Chu as an internship project. It was motivated by a [paper][18] from
Stanford University: "Quasar: Resource-Efficient and QoS-Aware Cluster Management".

Charmander at its core provides an easy to use environment to a) **schedule** and **deploy** compute-tasks in a multi-node setup
and b) **measure** the corresponding cpu, memory, and network-loads.

![image](https://github.com/att-innovate/charmander/blob/master/docs/assets/CharmanderSchedulerLab.png?raw=true)

The collected measurements can afterwards be **analyzed** using the included Spark analytics workbench and subsequently
those results can be **fed back** in to the scheduler.

Obviously this lab-setup can be used for other use-cases like testing and analyzing machine-learning based anomaly-detection,
noisy-neighbor detection, or profiling algorithms, or simply serving as the load-pattern verification authority in a continuous integration environment.

#### Setup and Run Charmander

All that is required to run a simple lab setup and an experiment is _Vagrant_, _VirtualBox_, _curl_, a fast internet connection,
and a bit of spare time.

All the steps are automated and are part of simple scripts that come with the Charmander project. All the additional
software needed during the setup gets installed and built inside the VMs, nothing additionally gets installed on
the host itself.

Btw, if at any time during installation you run in to an error, please follow the steps outlined in [Tips and Tricks][14]

1. [Setup Nodes][5]

- Configure and build the different nodes with Vagrant and VirtualBox
- Reload and reset environment

2. [Build and deploy Scheduler][6]

- Clone the Charmander Scheduler projects
- Compile it inside the master node
- Deploy and run it

3. [Build and deploy Analytics Stack][8]

- Build all the Docker images for the full analytics stack on the analytics node

4. Run some Experiments

- [Maxusage][9]
- [Sparkkernel][10]

5. [Scheduler API][12]

- List of all the different Scheduler REST APIs

6. [Script Reference][13]

- List of all the include scripts/tools

7. [Tips and Tricks][14]

- Some tips and tricks for common issues

#### The different Charmander projects on GitHub

- [github.com/att-innovate/charmander][1]

The main project, this project, it contains all the scripts to set up the lab.

- [github.com/att-innovate/charmander-scheduler][2]

Charmander Scheduler is our Framework for Mesos.

- [github.com/att-innovate/charmander-heapster][3]

A slimmed-down version of Google's Heapster project.

- [github.com/att-innovate/charmander-spark][4]

This project contains Charmander-specific helper functions for Spark.

- [github.com/att-innovate/charmander-experiment-maxusage][9]

The MaxUsage-Experiment analyzes the actual memory usage of a running simulators and uses that result to overwrite the memory-allocation for subsequent run-requests for the same simulators.

- [github.com/att-innovate/charmander-experiment-sparkkernel][10]

The SparkKernel-Experiment is using SparkKernel to calculate max-memory usage.

#### Additional thanks goes to

some additional open source projects and a blog post that have inspired us:
- [VoltFramework][15]
- [Mesos-Go][16]
- [A Docker Dev Environment in 24 Hours!][17]

[1]: https://github.com/att-innovate/charmander
[2]: https://github.com/att-innovate/charmander-scheduler
[3]: https://github.com/att-innovate/charmander-heapster
[4]: https://github.com/att-innovate/charmander-spark
[5]: https://github.com/att-innovate/charmander/blob/master/docs/SETUPNODES.md
[6]: https://github.com/att-innovate/charmander/blob/master/docs/SETUPSCHEDULER.md
[7]: https://github.com/att-innovate/charmander/blob/master/docs/SETUPSIMULATOR.md
[8]: https://github.com/att-innovate/charmander/blob/master/docs/SETUPANALYTICS.md
[9]: https://github.com/att-innovate/charmander-experiment-maxusage
[10]: https://github.com/att-innovate/charmander-experiment-sparkkernel
[11]: https://github.com/ibm-et/spark-kernel
[12]: https://github.com/att-innovate/charmander/blob/master/docs/SCHEDULERAPI.md
[13]: https://github.com/att-innovate/charmander/blob/master/docs/SCRIPTS.md
[14]: https://github.com/att-innovate/charmander/blob/master/docs/TRICKSTIPS.md
[15]: https://github.com/VoltFramework/volt
[16]: https://github.com/mesos/mesos-go
[17]: http://blog.relateiq.com/a-docker-dev-environment-in-24-hours-part-2-of-2/
[18]: http://web.stanford.edu/group/mast/cgi-bin/drupal/content/quasar-resource-efficient-and-qos-aware-cluster-management