Sign inSign up

s21g/boss

By s21g

Updated over 9 years ago

Boss for docker service worker nodes

Image
0

1.3K

s21g/boss repository overview

boss

Boss for docker services

USAGE

  • start the service.

    docker service create --name boss -p 21081:21081 \
      --constraint node.role==manager \
      --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
      s21g/boss
    
  • Notify the addition of a worker node to the boss from the startup script of VM instance.

    curl http://localhost:21081/update/<service-name>
    
  • Boss spins up and down number of replicas to rebalance tasks amoung swarm cluster.

  • Notify the removal of a worker node to the boss from the shutdown script of VM instance.

    curl http://localhost:21081/drain/`hostname`
    
    • Boss change the availability of the node to 'drain'

In addition, the boss checks periodically the node list to find downed workers to remove them.

Tag summary

Content type

Image

Digest

Size

37.9 MB

Last updated

over 9 years ago

docker pull s21g/boss