1416
Your logging is probably down (media.piefed.social)
submitted 3 months ago* (last edited 3 months ago) by Ek-Hou-Van-Braai@piefed.social to c/selfhosted@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] InnerScientist@lemmy.world 12 points 3 months ago

Infrastructure diagram? No! In this homelab we refer to the infrastructure hyperdodecahedron.

[-] tal@lemmy.today 5 points 3 months ago* (last edited 3 months ago)

It seems like a good time to learn graphviz's dot format for the network layout diagrams, with automated layout.

https://mamchenkov.net/wordpress/2015/08/20/graphviz-dot-erds-network-diagrams/

[-] chM5tZ8zMp@lemmy.sdf.org 3 points 3 months ago
[-] tal@lemmy.today 3 points 3 months ago* (last edited 3 months ago)

Sure. What that guy is using is actually not the most-interesting diagram style, IMHO, for automatic layout of network maps, if you want large-scale stuff, which is where the automatic layout gets more interesting. I have some scripts floating around somewhere that will generate very large network maps


run a bunch of traceroutes, geolocate IPs, dump the results into an sqlite database, and then generate an automatically laid-out Internet network map. I don't want to go to the trouble of anonymizing the addresses and locations right now, but if you have a graphviz graph and want to try playing with it, I used:

goes looking

Ugh, it's Python 2, a decade-and-a-half old, and never got ported to Python 3. Lemme gin up an example for the non-hierarchical graphviz stuff:

graph.dot:

graph foo {
    a--b
    a--d
    b--c
    d--e
    c--e
    e--f
    b--d
}

Processed with:

$ sfdp -Goverlap=prism -Gsep=+5 -Gesep=+4 -Gremincross -Gpack -Gsplines=true -Tpdf -o graph.pdf graph.dot

Generates something like this:

That'll take a ton of graphviz edges and nicely lay them out while trying to avoid crossing edges and stuff, in a non-hierarchical map. Get more complicated maps that it can't use direct lines on, it'll use splines to curve lines around nodes. You can create massive network maps like this. Note that I was last looking at graphviz's automated layout stuff about 15 years ago, so it's possible that they have better layout algorithms now, but this can deal with enormous numbers of nodes and will do reasonable things with them.

I just grabbed his example because it was the first graphviz network map example that came up on a Web search.

this post was submitted on 13 Mar 2026
1416 points (100.0% liked)

Selfhosted

60542 readers
364 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS