Lý Thành
03/11/2026, 4:05 AMRocky
03/11/2026, 4:06 AMreplication_num = 3. StarRocks will intelligently distribute these 3 replicas across different "racks" (DCs) so that the loss of one entire DC does not result in data loss or downtime.
2. Cross-Cluster Disaster Recovery (Active-Passive)
For cross-region disaster recovery where latency is high, a single cluster is not ideal. Instead, you should maintain two independent clusters (Primary and Standby) and synchronize them using the Cross-Cluster Replication (CCR) tool.
* StarRocks-Cluster-Sync Tool:
* Use the starrocks-cluster-sync tool to synchronize data and metadata from the source (Primary) to the target (Standby) cluster.
* Incremental Sync: Set one_time_run_mode=false in sync.properties to allow the tool to continuously sync new data.
* Metadata Sync: The tool can synchronize databases, tables, and even Materialized Views.
* Consistency: CCR is eventually consistent. There will be a slight lag between the two clusters, but in the event of a Primary DC failure, you can point your application to the Standby cluster.
3. Shared-Data Architecture (Cloud-Native DR)
If you are using StarRocks' Shared-Data architecture (where data is stored in object storage like S3), the strategy shifts toward storage-level protection.
* Cluster Snapshot:
* StarRocks supports Cluster Snapshots for shared-data clusters. This captures the entire cluster state (metadata in FE and data in object storage).
* Object Storage Replication: Enable native cross-region replication (e.g., AWS S3 CRR) on your buckets.
* Rapid Recovery:
* In a DR scenario, you can spin up a new StarRocks cluster in a different region and restore its state from the replicated object storage snapshot. This provides second-level metadata recovery even for PB-scale data.
4. Key Performance & Networking Tips
* Bandwidth & Latency: Ensure you have sufficient bandwidth between DCs for data replication. High latency between FEs in a single cluster can slow down metadata writes (commits).
* Port Accessibility: Ensure required ports (9030 for Query, 9020 for RPC, 8030 for HTTP, and 9060/8040 for BEs) are open between clusters for the sync tool to function.
* Monitoring: Monitor the replication_delay to ensure your DR site is up-to-date and that the synchronization isn't falling behind during high-load periods.
Would you like more details on setting up the starrocks-cluster-sync tool or configuring Location Awareness tags for your BEs? I'm here to help!
References
• administration/data_migration_tool.md