Skip to content
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

Open
arun-gupta opened this issue Jun 10, 2015 · 7 comments
Open

Visualize Swarm nodes in a cluster #55

arun-gupta opened this issue Jun 10, 2015 · 7 comments

Comments

@arun-gupta
Copy link
Owner

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

@arun-gupta
Copy link
Owner Author

Use Swarm Viz from @chanezon

@chscorpio
Copy link
Contributor

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

@arun-gupta
Copy link
Owner Author

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

@chanezon
Copy link

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:-)

@chscorpio
Copy link
Contributor

@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?

@arun-gupta
Copy link
Owner Author

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

@DovAmir
Copy link

DovAmir commented Aug 24, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants