Skip to main content

MoiToi Docker Hive is simple dockrized containers manager

Project description

MoiToi Docker Hive

https://img.shields.io/pypi/v/moitoi_docker_hive.svg https://img.shields.io/travis/kepsic/moitoi_docker_hive.svg Documentation Status

MoiToi Docker Hive is simple docker containers orchestrator, which deploys services as containers and spreads the workloads between number of nodes and acting as cluster.

Features

Images

Following images is deployed on first cluster init

Image

Description

mdh_lb

NGINX load balancer image

mdh_backend

Backend image

mdh_elsa

REST API and load balancer config handler

mdh_grafana

Grafana instance

mdh_prom

Prometheus instance

mdh_statsd

Proetheus stats exporter

Every service instance have a Telegraf entrypoint scraped by Prometheus instance. Prometheus data is visualized by Grafana instance

Endpoints

/Service
params
  • cluster_id - mdhxx…..

  • add_service - Initializes new cluster with one backned node and monitoring infra

  • add_node - add’s node to cluster

  • rm_node - removes node from cluster

  • GET - Without params it will return all clusters and nodes

  • POST - Creates new cluster as specified in JSON input.
    { "clusters": "1",
      "replicas" : "1" }
  • PUT/PATCH - Updates cluster as specified in JSON input with with cluster_id param.
    { "replicas" : "2" }
  • DELETE - Delete cluster cluster cluster_id is specified

/State
params
  • cluster_id - mdhxx…..

  • GET - Without params it will return all clusters and node states. With cluser_id returns cluster state

/Grafana

Grafana interface. Default admin password is specified is first 10 characters of cluster_id

ToDo

  • More documentation

  • Increase security level by adding authentitcation

  • Decrease docker socket access for ELSA. Currently its fully exposed for all services.

  • Remote provider for example VMWare, XEN, etc

  • Implement tests

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-12-17)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moitoi_docker_hive-0.1.0.tar.gz (268.9 kB view details)

Uploaded Source

Built Distribution

moitoi_docker_hive-0.1.0-py3.6.egg (294.4 kB view details)

Uploaded Source

File details

Details for the file moitoi_docker_hive-0.1.0.tar.gz.

File metadata

  • Download URL: moitoi_docker_hive-0.1.0.tar.gz
  • Upload date:
  • Size: 268.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.3

File hashes

Hashes for moitoi_docker_hive-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19e69bdbebccb5aa6721882a625b4100b0abdbd2eb24bb76494a9c4fb9f1ea4b
MD5 2ff2539ad814d0372905ea770e155bad
BLAKE2b-256 8000c2d8156b737385e9a92b3612015114b7f078c26bee5f5b8dcfc4b5c618ad

See more details on using hashes here.

File details

Details for the file moitoi_docker_hive-0.1.0-py3.6.egg.

File metadata

  • Download URL: moitoi_docker_hive-0.1.0-py3.6.egg
  • Upload date:
  • Size: 294.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.3

File hashes

Hashes for moitoi_docker_hive-0.1.0-py3.6.egg
Algorithm Hash digest
SHA256 53f5377cf0a4ba75388cc5a5162e185b3d42b0f8dacff09cf3a636fe6959e6ab
MD5 d89bf60123c4bd3caf90dd9fad8302d0
BLAKE2b-256 1950b844fb204b383c967645c667a824d4f019cdeddd224aacd241cea87a6712

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page