Skip to content

Instantly share code, notes, and snippets.

@mikewallace1979
Created July 10, 2013 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikewallace1979/5965951 to your computer and use it in GitHub Desktop.
Save mikewallace1979/5965951 to your computer and use it in GitHub Desktop.
CouchDB replication topology visualisation one-liner
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