how best to merge swift zone into another?

asked 2013-07-01 09:32:09 -0500

Tim Cross gravatar image

updated 2013-07-02 09:02:00 -0500

smaffulli gravatar image

We have a test setup with one zone per node, and we want to make it one zone per 2 or three nodes. What's the cleanest way to merge, say, Z4 into Z1, Z5 into Z2, Z6 into Z3? Not much data, but we'll eventually need to do something similar in a deployment with a lot of data. Thanks for any advice you can provide.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-06 18:52:17 -0500

fifieldt gravatar image

updated 2013-07-06 18:53:25 -0500


The basic procedure is

  1. remove a zone from the ring
  2. rebalance the cluster until data is evenly distributed again
  3. add the removed zone back in the zone layout you want
  4. rebalance the cluster until data is evenly distributed again
  5. repeat 1-4 for all the zones you want to merge.

Ensure that you wait sufficient time for rebalancing (the whole process could take hours if you have a lot of data, but doesn't result in user impact), and that you always have at least 3 zones (ideally 5) operational, to avoid data loss.

edit flag offensive delete link more


This would be my first idea, but isn't there some faster option?

mkollaro gravatar imagemkollaro ( 2013-07-08 10:11:52 -0500 )edit

not that I'm aware of, though I'm not an expert. What kind of method would you think might be possible?

fifieldt gravatar imagefifieldt ( 2013-07-08 17:26:18 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-07-01 09:32:09 -0500

Seen: 787 times

Last updated: Jul 06 '13