docker-java icon indicating copy to clipboard operation
docker-java copied to clipboard

Visualize Swarm nodes in a cluster

Open arun-gupta opened this issue 10 years ago • 7 comments

Is there any way to visualize containers in a cluster? Use Docker REST API?

arun-gupta avatar Jun 10 '15 05:06 arun-gupta

Use Swarm Viz from @chanezon

arun-gupta avatar Jun 19 '15 09:06 arun-gupta

I couldn't find @chanezon 's Swarm Viz. Did you mean https://github.com/bfirsh/swarm-viz ?

The only change I needed from his instructions was to use open http://$(docker-machine ip default):3000 instead of open http://$(boot2docker ip default):3000

chscorpio avatar Dec 15 '15 03:12 chscorpio

@chscorpio might be it, do you wan to send a PR for including this in the workshop?

arun-gupta avatar Dec 15 '15 04:12 arun-gupta

Glad that @bfirsh open sourced it: that was the Viz we used in Dockercon 2015 keynote. It's quick and dirty (2 days work) and needs some additional work, but I have tested it with 100 hosts and 12000 containers (just the viz part). Things I wanted to enhance: leverage d3 to avoid nuking the dom everytime. Also adding tooltips with all the container details, that would be fetched on demand. This is an exercise left to the reader:-)

chanezon avatar Dec 15 '15 05:12 chanezon

@arun-gupta Once I actually opened the browser, the visualization result wasn't very impressive as it only showed the two worker nodes drawn as boxes with no other details provided nor interactions available. Actually, I was more impressed with the underlying code as a sample node.js app that made it clear how to connect to the swarm using the node.js docker lib and how to use web sockets to emit changes to the Swarm cluster directly to the browser when they occur.

Would you like me to update the end of the docker-swarm chapter to refer to https://github.com/bfirsh/swarm-viz but leave the actual steps as an exercise for the reader?

chscorpio avatar Dec 15 '15 07:12 chscorpio

@chscorpio absolutely! I plan to experiment with it myself anyway.

arun-gupta avatar Jan 04 '16 19:01 arun-gupta

You can use this tool to visualize a docker swarm mode cluster https://github.com/DovAmir/docker-swarm-visualizer

DovAmir avatar Aug 24 '16 19:08 DovAmir