Swift跨region数据迁移问题

Across region data migration

All regions share one Ring file, and the data distribute algorithm is balance targeted. With such a global shared Ring file

and rebalance algorithm, every time one rebalance the ring after add or delete storage node(device) will causes data

migration both across region and in local region. The theoretical ratio value of data migration should be:  

num_of_migrate_partitions = (num_of_added_devs/total_devs )*  (R* 2^P)   …(1) 

R: replica number; 2^P: the total number of partition.

I tested the data migration ratio across two regions. The test results match the theoretical analysis.

So, while multi-region deployment. I think, we should notice the affection of across region data migration, at least:

     1)       Instantaneous increased network load;

     2)       Data inconsistency window and costs.


Test records of across region data migration:

---------------------------------------------------------------------------------------------------------------------------------

A.    The initial Ring (ring_v1):

1048576 partitions, 3.000000 replicas, 2 regions, 23 zones, 1850 devices, 0.04 balance, 185 storage nodes

B.     Add 6 zones with 60 devices to region 1. And rebalance the Ring (ring_v2):

1048576 partitions, 3.000000 replicas, 2 regions, 29 zones, 1910 devices, 0.06 balance, 191 storage nodes

C.      Calculate the number of data migrated across these two regions:

Total partition reassigned from Region_1 to Region_2: 52022

Total partitions numbers (with replica 3): 3145728 

Data migration ratio:  1.65%


如果在Region之间摒弃balance要求,让ring-builder在rebalance 的时候能够知晓是在multi-region情况,可以解决因为rebalance而导致的跨(region)数据中心的数据迁移。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值