4 Lab: Multi-Cluster Replication

liquid drum and bass blues, symphonic city pop, slushwave acid house

Listen on 93

Lyrics

[Verse 1]
Two kingdoms separate, namespaces divided
Each hosting their own Kafka throne
Producer one speaks secrets to cluster alpha
Consumer two waits by cluster beta's phone
Mirror Maker stands between these realms
Copying messages across the void
Active-passive dance begins to unfold
When disaster strikes, who gets deployed?

[Chorus]
Mirror mirror, replicate it all
Topics flowing through the Kubernetes wall
Source to target, offset synchrony
Mirror mirror, failover guarantee
When the primary tumbles down
Mirror maker wears the crown

[Verse 2]
Deploy the first with yaml specifications
Namespace alpha claims its territorial space
Bootstrap servers establish their foundation
Three brokers humming in their designated place
Now spin up beta in its separate zone
Identical config but different domain
Mirror Maker Two connects the distant shores
Replication lag becomes our refrain

[Chorus]
Mirror mirror, replicate it all
Topics flowing through the Kubernetes wall
Source to target, offset synchrony
Mirror mirror, failover guarantee
When the primary tumbles down
Mirror maker wears the crown

[Bridge]
Simulate the chaos, kill the source cluster
Watch consumers scramble for new ground
Offset translation maps the message history
Zero data loss when failover's found
Consumer groups resume from where they paused
Mirror maker's magic saves the day

[Verse 3]
Kafka Mirror Maker Two resource deployed
Connect clusters with connector threads
Checkpoints written, heartbeats detected
Replication flows where data spreads
Test the failover, validate the switch
Consumer offsets properly aligned
Active-passive becomes passive-active
Disaster recovery by design

[Chorus]
Mirror mirror, replicate it all
Topics flowing through the Kubernetes wall
Source to target, offset synchrony
Mirror mirror, failover guarantee
When the primary tumbles down
Mirror maker wears the crown

[Outro]
Multi-cluster mastery achieved
Strimzi orchestrates the grand ballet
High availability through replication
Mirror maker saves the day

← 3 Multi-Region / Disaster Recovery Patterns | 1 Metrics with Prometheus →