Ask Your Question
0

Add new replica to swift

asked 2016-03-31 06:15:45 -0500

Marco Marino gravatar image

Hi, I have a running swift cluster with 1024 partitions, 1 replica, 1 region, 1 zone and 4 devices (and 1 storage server). I'd like to add new server with a new replica, how can I do this? I noticed that swift-ring-builder has a subcommand named "set_replicas" , but I cannot understand if I need to add before a zone (in a new server), then rebalance and then add a new replica or should I add one zone and the replica before rebalance? Thank you

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-07 05:15:36 -0500

Marco Marino gravatar image

Ok, problem solved. Some (not detailed) informations here:

  1. Create or update the configuration of rsync in /etc/rsyncd.conf, specifying the address of the interface that is used for the replication network
  2. Modify the configuration of account,container and object servers for utilizing the "directory based configuration" (eg: 1.conf, 2.conf, ecc..) and use these files if you want to configure different port and ip address for replication network
  3. Update the ring. Use a temporary folder! Do not change the ring directly in /etc/swift !!! In particular: a) Add new zone with all devices. b) set_replicas 2 (eg) and c)rebalance the ring. Check that no dispersion is involed and that all is ok.
  4. Distribute the ring across all nodes of the storage
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

Stats

Asked: 2016-03-31 06:15:45 -0500

Seen: 93 times

Last updated: Apr 07 '16