How GitHub rebuilt search architecture for high availability in Enterprise Server
- GitHub Enterprise Server
- Elasticsearch
- Azure
AI Summary
GitHub engineers redesigned the search architecture for GitHub Enterprise Server (GHES) to improve high availability and reliability. Previous versions used an Elasticsearch cluster spread across primary and replica nodes, which frequently led to split-brain or locked states during maintenance. By migrating to Elasticsearch's Cross Cluster Replication (CCR) feature with independent single-node clusters, GitHub eliminated fragile multi-node clustering dependencies. The new system natively matches the leader-follower pattern of GHES, handling data sync at the Lucene segment level while introducing custom workflows for failover, index bootstrapping, and upgrades.
Key Takeaways
- Replaced a brittle cross-node Elasticsearch cluster with Elasticsearch Cross Cluster Replication (CCR).
- Aligned search database replication with the existing leader/follower pattern of GitHub Enterprise Server HA.
- Customized lifecycles for bootstrapping existing indexes, automatic failover, and rolling upgrades.
Why it matters
This architectural pivot demonstrates how to solve complex distributed systems challenges by aligning third-party database replication features with native application topologies, reducing operational friction and failure modes for self-hosted enterprise software.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.