[Verse 1]
Deep inside the cluster's heart there beats a special stream
A single partition log that holds the metadata dream
It's replicated safe and sound across the active nodes
Recording every change that through the system flows
[Chorus]
Metadata log, metadata log
Single partition, never clog
Topics born and topics die
Brokers join and configs fly
Metadata log, metadata log
Building cache from every blog
Every change gets written down
In this log the truth is found
[Verse 2]
When a topic gets created or deleted from the scene
The metadata log captures it in records crystal clean
Partition reassignments and broker registration
ACL changes, feature flags across the federation
[Chorus]
Metadata log, metadata log
Single partition, never clog
Topics born and topics die
Brokers join and configs fly
Metadata log, metadata log
Building cache from every blog
Every change gets written down
In this log the truth is found
[Bridge]
But logs can grow forever, that's a problem we must face
So compaction comes to rescue, saving precious storage space
Snapshots freeze the current state, a checkpoint in time
While brokers read these records to keep their cache in line
[Verse 3]
Every broker in the cluster consumes this precious feed
Reading all the metadata changes that they need
Building up their local cache from every single line
So they know the cluster state at any point in time
[Chorus]
Metadata log, metadata log
Single partition, never clog
Topics born and topics die
Brokers join and configs fly
Metadata log, metadata log
Building cache from every blog
Every change gets written down
In this log the truth is found
[Outro]
One log rules them all today
In the KRaft distributed way
Metadata flows like a river wide
With cluster metadata as our guide