-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visualize Swarm nodes in a cluster #55
Comments
Use Swarm Viz from @chanezon |
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 might be it, do you wan to send a PR for including this in the workshop? |
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. |
@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 absolutely! I plan to experiment with it myself anyway. |
You can use this tool to visualize a docker swarm mode cluster |
Is there any way to visualize containers in a cluster? Use Docker REST API?
The text was updated successfully, but these errors were encountered: