Ask Your Question

define swift replica count by region?

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

jasony gravatar image

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

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 -0500

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 297 times

Last updated: May 13 '15