Cluster manager
Project description
VmShepherd
Introduction
VmShepherd is an application that helps you maintain groups (clusters) of virtual machines. It keeps defined parameters (like count, image, etc.) by checking state in an IaaS layer, and tests underlying services with a specified health check.
Architecture
VmShepherd is designed to be easily extensible with plugins. Empowered by python3 and its asyncio module to facilitate scaling. The diagram below shows the base components of the app.
Preset Manager is responsible for fetching cluster spec/definition (preset). Built-in presets: DirectoryDriver and GitRepoDriver
Runtime Manger exposes functionality of locking preset, and holds intermediate states. Currently available: InMemoryDriver, PostgresDriver, ZookeeperDriver.
IaaS is a glue (api wrapper) to IaaS provider, OpenStackDriver is the first implemented.
Healthcheck allows to check service’s state, not only for existence of a virtual machine. HttpHealthcheckDriver is built-in.
For more information, please take look at the documentation.
Installation
Application requires python 3.6 or later. The latest stable version is available on Pypi.
pip install vmshepherd
We also provide a Dockerfile which can be used for a development installation:
docker build -t vmshepherd . docker run -it -p 8888:8888 -p 8000:8000 vmshepherd run
Usage
After installation you need to create a main configuration file (check examples in config/ directory in this repo).
Run:
vmshepherd -c CONFIGFILE
Contributing to VmShepherd
Thank you for your interest in contributing to VmShepherd. Like always there are many ways to contribute, and we appreciate all of them.
Pull requests and issues are the primary mechanism we use to change VmShepherd. Github itself has a great documentation about using Pull Requests. We use the “fork and pull” model, where contributors push changes to their personal fork and create pull requests to bring those changes into the source repository.
If you want to find something to work on, please check issues in our roadmap.
Check out the documetation http://doc.dreamlab.pl/VmShepherd/development/index.html.
TL;DR
Pull requests will need:
Tests
Documentation
A logical series of well written commits
License
Changelog
1.0.1 (2018-06-08)
bugfix: API should use last cycle data
bugfix: OpenStackDriver refresh token
1.0.0 (2018-06-06)
preserve preset state (dashboard shows data from last cycle)
bump AsyncOpenStackClient (0.6.2)
docs
0.7.7 (2018-05-10)
bump AsyncOpenStackClient (0.5.2)
0.7.6 (2018-05-10)
bump AsyncOpenStackClient (0.5.1)
0.7.5 (2018-04-09)
runtime driver abstract fix
0.7.4 (2018-03-22)
cleanup, verify
0.7.3 (2018-03-22)
bump AsyncOpenStackClient (+ compat)
0.7.2 (2018-03-22)
user-data base64
0.7.1 (2018-03-21)
multiple network interfaces
0.7.0 (2018-03-20)
AsyncOpenStackClient
0.6.0 (2018-02-01)
web panel
rpc api
0.0.3 (2018-02-01)
initial
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.