Ask Your Question

define swift replica count by region?

asked 2015-04-26 13:44:53 -0600

jasony gravatar image

updated 2015-04-28 17:11:14 -0600

Is there a way to specifically define how many replicas a region will contain? For example, assume 10 nodes each in Los Angeles, Dallas, and New York, for a total of 30 storage nodes. How might we accomplish the following with storage policies?

Policy 1
Dallas: 2 replicas
Los Angeles: 1 replica
New York: 1 replica

Policy 2
Dallas: 2 replicas
Los Angeles: 2 replicas

For policy 1 could we configure the object ring to have 4 replicas, then the 10 nodes each in Los Angeles & New York would have 1 zone, and Dallas would have 2? Would swift distribute a partition across the 4 zones? In this scenario the zones no longer reflect the pyhsical environment which seems to contradict the deployment guides.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-13 11:44:21 -0600

zaitcev gravatar image

No, there's no way to do what you want. You might accomplish a similar effect by screwing around with weights, but that only approximates your goal statistically.

If you're really dead-set on controlled, lopsided distributions, you need some kind of federation.

edit flag offensive delete link more


I have wondered about this question from a long time ago. Because I don't deploy multi cluster then I have not asked anyone for that. Thank you so much!

trangtriqc gravatar imagetrangtriqc ( 2020-05-17 10:13:41 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-26 13:44:53 -0600

Seen: 335 times

Last updated: May 13 '15