Cross Data Center Replication in Apache Solr
summary
Cross-data-center replication forwards Solr update operations between clusters (unidirectional since 6.0, bidirectional since 7.2) using leader-to-leader forwarding, persistent checkpoints in ZooKeeper, and APIs to start/stop/status plus queues/operations/errors. Initial sync uses a bootstrap single-threaded Lucene index fetch and optional in-memory buffering; steady-state uses a replicator sending small batches (example batch size 128 every 1000ms) — 1,000 updates take ~7–8s. Demo shows 80k → 160k → 220k documents and seamless failover, but solrconfig.xml must contain CDCR settings at creation and only NRT replicas are supported.
AI-written summary · about
chapters (16)
- 0:00Introduction to speakers
- 0:48Agenda and Apache Solr overview
- 2:32Motivation for CDCR
- 6:24CDCR introduction and features
- 8:54Unidirectional approach explained
- 10:40Initial sync with buffer and bootstrap
- 15:13Replicator and update log synchronizer
- 18:22CDCR update processor factory
- 19:03Monitoring APIs for CDCR
- 20:51Bidirectional approach
- 24:43Live demonstration setup
- 26:08Unidirectional demo
- 27:57Bidirectional demo
- 29:00Failover and recovery demo
- 31:07Limitations and future improvements
- 33:00References and Q&A
