Skip to content

Instantly share code, notes, and snippets.

@smothiki
Last active August 29, 2015 14:19
Show Gist options
  • Save smothiki/8fe1beef55549812e12e to your computer and use it in GitHub Desktop.
Save smothiki/8fe1beef55549812e12e to your computer and use it in GitHub Desktop.

docker swarm evetns

  1. created mysql on deis-03
  2. made deis-03 failvoer
  3. re schedule mysql on deis-02
  4. reconnect deis-03 and remove mysql as it has already been rescheduled
2015-04-22T20:23:35.000000000Z 8fbda0e636db3f8bf26042677a6f618efccfd26d124b91635ca6ba2f0d877eab: (from mysql:5 node:deis-03) create
2015-04-22T20:23:35.000000000Z 8fbda0e636db3f8bf26042677a6f618efccfd26d124b91635ca6ba2f0d877eab: (from mysql:5 node:deis-03) start
2015-04-22T20:24:00.000000000Z (from swarm node:deis-03) engine_disconnect
2015-04-22T20:24:18.000000000Z 9e22bb2c8fd11c346e8024f81c31ad10eca59f2c8321f7ce454ab02e3213e6f4: (from mysql:5 node:deis-02) create
2015-04-22T20:24:18.000000000Z 9e22bb2c8fd11c346e8024f81c31ad10eca59f2c8321f7ce454ab02e3213e6f4: (from mysql:5 node:deis-02) start
2015-04-22T20:25:56.000000000Z (from swarm node:deis-03) engine_reconnect
2015-04-22T20:25:58.000000000Z 8fbda0e636db3f8bf26042677a6f618efccfd26d124b91635ca6ba2f0d877eab: (from mysql:5 node:deis-03) destroy

During deis-03 disconnect event mysql in deis-03 shows pending

core@deis-04 ~ $ docker -H 172.17.8.103:2395 ps
CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS                  PORTS               NAMES
9e22bb2c8fd1        mysql:5             "/entrypoint.sh mysq   6 seconds ago       Up Less than a second   3306/tcp            deis-02/some-mysql    
8fbda0e636db        mysql:5             "/entrypoint.sh mysq   49 seconds ago      Pending                 3306/tcp            deis-03/some-mysql   

During deis-03 reconnect event mysql in deis-03 is removed as it is already running in deis-02

core@deis-04 ~ $ docker -H 172.17.8.103:2395 ps
CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS              PORTS               NAMES
9e22bb2c8fd1        mysql:5             "/entrypoint.sh mysq   2 minutes ago       Up 2 minutes        3306/tcp            deis-02/some-mysql    
4c93f95213cc        redis:latest        "/entrypoint.sh redi   About an hour ago   Up About an hour    6379/tcp            deis-02/some-redis3   
16ee2fe9f663        redis:latest        "/entrypoint.sh redi   18 hours ago        Up 18 hours         6379/tcp            deis-02/some-redis 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment