# Instrumenting AI: Multi-master replication and the split brain problem

DevFeed: [Instrumenting AI: Multi-master replication and the split brain problem](<https://devfeed.tech/articles/instrumenting-ai-multi-master-replication-and-the-split-brain-problem-39576.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/24-instrumenting-ai-multi-master-replication-split-brain/>)

Author: hello@ankit-rana.com

Published: 2026-05-17T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [distributed-systems](<https://devfeed.tech/topics/distributed-systems.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [Raft](<https://devfeed.tech/topics/raft.md>), [Availability](<https://devfeed.tech/topics/availability.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [conflict-resolution](<https://devfeed.tech/tags/conflict-resolution.md>), [consensus](<https://devfeed.tech/tags/consensus.md>), [database](<https://devfeed.tech/tags/database.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [network](<https://devfeed.tech/tags/network.md>), [partitions](<https://devfeed.tech/tags/partitions.md>), [paxos](<https://devfeed.tech/tags/paxos.md>), [raft](<https://devfeed.tech/tags/raft.md>), [split-brain](<https://devfeed.tech/tags/split-brain.md>)

## AI overview

The article explains how multi-master replication can produce split-brain behavior during network partitions. Both masters may accept conflicting writes, and reconciliation after the partition can discard valid data through last-write-wins rules. It presents Raft and Paxos quorum requirements as a way to prevent a second active brain.

## Source excerpt

In multi-master replication every node accepts writes, so when the network partitions both masters stay active and accept conflicting writes into isolated silos. On heal, automated conflict resolution usually falls back to last-write-wins, which blindly discards valid data. Raft and Paxos prevent this by requiring an odd node count and a strict majority: an isolated leader cannot reach quorum, so it steps down instead of forming a second brain.