Ask Your Question
0

adding new nodes to a swift cluster

asked 2013-10-23 19:31:48 -0600

guanwen gravatar image

My question is why rebalance stopped for object, after account and container rebalance?

I have an existing Swift cluster with three nodes and three replicas. Each node has 8 hard disks (3TB/disk). The three nodes are in two zone 1, 2, and 3. Now I would like to add two more nodes in zone 4 and zone 5. I did the following:

1) add node DSC2 to zone 4

/dev/sdc1

swift-ring-builder /etc/swift/account.builder add r1z4-${DSC2}:6002/sdc1 3000 swift-ring-builder /etc/swift/container.builder add r1z4-${DSC2}:6001/sdc1 3000 swift-ring-builder /etc/swift/object.builder add r1z4-${DSC2}:6000/sdc1 3000

2) add node DSC3 to zone 5

/dev/sdc1

swift-ring-builder /etc/swift/account.builder add r1z4-${DSC3}:6002/sdc1 3000 swift-ring-builder /etc/swift/container.builder add r1z4-${DSC3}:6001/sdc1 3000 swift-ring-builder /etc/swift/object.builder add r1z4-${DSC3}:6000/sdc1 3000

3) rebalance account

Rebalancing account ring ...

Reassigned 65536 (100.00%) partitions. Balance is now 16.67.

NOTE: Balance of 16.67 indicates you should push this

ring, wait at least 1 hours, and rebalance/repush.

4) rebalance container Rebalancing container ring ...

Reassigned 65536 (100.00%) partitions. Balance is now 16.67.

NOTE: Balance of 16.67 indicates you should push this

ring, wait at least 1 hours, and rebalance/repush.

5) rebalance object. However it stopped. At this moment, the new nodes have no running object-server, account-server, and container-server yet because there are no ring files there yet. Am I doing this right? or should I start the object/account/container servers on the new node before I copy the ring files to them? I guess it won't allow me to start the servers. Rebalancing object ring... No partitions could be reassigned. Either none need to be or none can be due to min_part_hours [1].

6) I copied the *ring.gz to all five nodes including the two new ones. Do I have to wait for one hour, and re-run the rebalance on account, container and object again and then recopy the ring files to all the nodes?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-23 20:12:26 -0600

guanwen gravatar image

I made a mistake doing the rebalance. I tried to rebalance the container twice but thought it was for object.

edit flag offensive delete link more
0

answered 2013-10-23 20:12:38 -0600

guanwen gravatar image

I made a mistake doing the rebalance. I tried to rebalance the container twice but thought it was for object.

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: 2013-10-23 19:31:48 -0600

Seen: 310 times

Last updated: Oct 23 '13