Sign inSign up

dockerorcadev/ucp-update-swarm

By dockerorcadev

Updated about 10 years ago

Adjusts the heartbeat and TTL for the ucp-swarm-join container on a specific UCP or DTR node.

Image
0

1.6K

dockerorcadev/ucp-update-swarm repository overview

#Purpose This tool will:

  1. Stop the existing ucp-swarm-join container and remove it
  2. Create a new ucp-swarm-join container that includes --ttl and --heartbeat arguments in its run command
  3. Start the new container
  4. Create a backup copy of the file /etc/docker/daemon.json on the node
  5. Modify /etc/docker/daemon.json to include discovery.heartbeat and discovery.ttl settings
  6. Send a SIGHUP to the docker daemon

#Usage First, either ssh to a UCP/DTR node, or ensure your docker client is configured to interact with the node you want to target.

For example,

eval $(docker-machine env node1)
docker info

or

docker-machine ssh node1
docker info

Then run this image:

docker run --rm  dockerorcadev/ucp-update-swarm --help
docker run --rm \
           --privileged \
           --pid=host \
           -v /var/run/docker.sock:/var/run/docker.sock \
           -v /var/run/docker.pid:/var/run/docker.pid \
           -v /etc/docker:/etc/docker  \
           dockerorcadev/ucp-update-swarm --ttl 900 --heartbeat 300

Note: In general, this tool should be run on every node in a DDC cluster (all UCP nodes and all DTR nodes).

Tag summary

Content type

Image

Digest

Size

256.5 MB

Last updated

about 10 years ago

docker pull dockerorcadev/ucp-update-swarm