1.0.10 • Published 6 years ago

radpoint-platform-swarm-healthcheck v1.0.10

Weekly downloads
-
License
Apache 2.0
Repository
-
Last release
6 years ago

README

This is a healthcheck for the Docker swarm to be installed as standalone process on every host that is a worker in a swarm. It checks that the docker daemon is running on that host and that it is connected to the swarm. The healthcheck will be called by the AWS Application Load Balancer on / port 8999

Build

Just publish to npm:

$ npm run push

Usage

  • In the EC2 launch configuration please install necessary stuff:
$ sudo apt-get install -y python-software-properties
$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ sudo npm install pm2 -g
$ sudo npm install radpoint-platform-swarm-healthcheck
  • In the EC2 launch configuration also make sure the pm2 is launched when system boots:
$ pm2 startup | grep sudo | bash -
  • Run this on each EC2 host that should be part of the swarm in the EC2 startup script:
$ pm2 start /path/to/healthcheck.js
$ pm2 save

Make sure that security group settings on both EC2 instance and ALB allow for the traffic on the 8999 tcp port.

Start locally

  1. Install docker
  2. Ensure that docker process is running
  3. Initilize docker swarm by using command: 'docker swarm init'
  4. Start local server using 'npm start'
  5. You are good to go on 'localhost:8999'
1.0.10

6 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago