Skip to content

A custom golang-library to orchestrate mutiple pods using etcd. Jobs can be allocated to pods using various allocation, along with resource security.

Notifications You must be signed in to change notification settings

anubhavitis/etcd-custom-orchestrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

etcd-custom-orchestrator

A custom golang-library to orchestrate mutiple pods using etcd. Jobs can be allocated to pods using various allocation, along with resource security.

Demo

Watch demo on loom

Setup and Installation

This is mac installation setup.

  • Install etcd service
    $ brew install etcd
    $ brew services start etcd
    
  • clone the repo
    $ git clone https://github.com/anubhavitis/etcd-custom-orchestrator.git
    $ go mod tidy
    $ go mod vendor
    

Steps to Run

  • Run on two different ports:
    $ go run main.go -port :8080
    
    $ go run main.go -port :8081
    
  • Now use another terminal to add new jobs:
    $ curl http://localhost:8080/<job-name>
    

Allocation strategy

Currently we are only using hash-based allocation, but can be extended to weight based allocation, and other strategies as well.

About

A custom golang-library to orchestrate mutiple pods using etcd. Jobs can be allocated to pods using various allocation, along with resource security.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages