Created
July 10, 2013 12:38
-
-
Save mikewallace1979/5965951 to your computer and use it in GitHub Desktop.
CouchDB replication topology visualisation one-liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X GET http://localhost:5984/_active_tasks | jq -r '. | map(select(.type=="replication")) | map("\"",.source,"\"","->","\"",.target,"\"",";") | "digraph G { ranksep=10;ratio=auto;",.[],"}"'| twopi -Tpdf > topology.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment