Ask Your Question
0

A "swift-ring-builder *.builder rebalance" issue

asked 2011-02-19 23:17:27 -0500

zenn gravatar image

Hi everyone.

I'm trying to build a little Swift Infrastructure from this tutorial : http://docs.openstack.org/openstack-object-storage/admin/os-objectstorage-admin-book.pdf (http://docs.openstack.org/openstack-o...)

Actually i have 3 VMs: - Proxy Node - Authentication Node - Storage Node with : 4 logical partitions : /dev/sda5, /dev/sda6, /dev/sda7, /dev/sda8

In the 7th step of how configuring a Proxy Node, i added the ressources this way :

swift-ring-builder account.builder create 18 3 1 swift-ring-builder account.builder add z1-192.168.1.18:6001/sda5 100 swift-ring-builder account.builder add z1-192.168.1.18:6002/sda6 100 swift-ring-builder account.builder add z1-192.168.1.18:6003/sda7 100 swift-ring-builder account.builder add z1-192.168.1.18:6004/sda8 100 swift-ring-builder container.builder create 18 3 1 swift-ring-builder container.builder add z1-192.168.1.18:6011/sda5 100 swift-ring-builder container.builder add z1-192.168.1.18:6012/sda6 100 swift-ring-builder container.builder add z1-192.168.1.18:6013/sda7 100 swift-ring-builder container.builder add z1-192.168.1.18:6014/sda8 100 swift-ring-builder object.builder create 18 3 1 swift-ring-builder object.builder add z1-192.168.1.18:6021/sda5 100 swift-ring-builder object.builder add z1-192.168.1.18:6022/sda6 100 swift-ring-builder object.builder add z1-192.168.1.18:6023/sda7 100 swift-ring-builder object.builder add z1-192.168.1.18:6024/sda8 100

Here is the result :

swift-ring-builder object.builder

object.builder, build version 4 262144 partitions, 3 replicas, 1 zones, 4 devices, 100.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 0 1 192.168.1.18 6021 sda5 100.00 0 -100.00 1 1 192.168.1.18 6022 sda6 100.00 0 -100.00 2 1 192.168.1.18 6023 sda7 100.00 0 -100.00 3 1 192.168.1.18 6024 sda8 100.00 0 -100.00

swift-ring-builder container.builder

container.builder, build version 4 262144 partitions, 3 replicas, 1 zones, 4 devices, 100.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 0 1 192.168.1.18 6011 sda5 100.00 0 -100.00 1 1 192.168.1.18 6012 sda6 100.00 0 -100.00 2 1 192.168.1.18 6013 sda7 100.00 0 -100.00 3 1 192.168.1.18 6014 sda8 100.00 0 -100.00

swift-ring-builder account.builder

account.builder, build version 4 262144 partitions, 3 replicas, 1 zones, 4 devices, 100.00 balance The minimum number of hours before a partition can be reassigned is 1 Devices: id zone ip address port name weight partitions balance meta 0 1 192.168.1.18 6001 sda5 100.00 0 -100.00 1 1 192.168.1.18 6002 sda6 100.00 0 -100.00 2 1 192.168.1.18 6003 sda7 100.00 0 -100.00 3 1 192.168.1 ... (more)

edit retag flag offensive close merge delete

8 answers

Sort by ยป oldest newest most voted
0

answered 2011-02-21 00:16:04 -0500

zenn gravatar image

Thanks Colin.

edit flag offensive delete link more
0

answered 2011-02-19 23:53:19 -0500

Hi,

You are only creating 1 zone - try using at least 3 and see if that works.

Colin

edit flag offensive delete link more
0

answered 2011-02-20 00:26:42 -0500

zenn gravatar image

Hi Colin,

Thanks for the answer. Is there a way to have 3 zones without necessarily creating 3 nodes/VMs ?

Thanks.

edit flag offensive delete link more
0

answered 2011-02-20 00:29:38 -0500

Hi,

You can make each of your partitions a different zone -

swift-ring-builder account.builder create 18 3 1 swift-ring-builder account.builder add z1-192.168.1.18:6001/sda5 100 swift-ring-builder account.builder add z2-192.168.1.18:6002/sda6 100 swift-ring-builder account.builder add z3-192.168.1.18:6003/sda7 100 swift-ring-builder account.builder add z4-192.168.1.18:6004/sda8 100

See this page for more info on setting up on a single machine

http://swift.openstack.org/development_saio.html#setting-up-scripts-for-running-swift (http://swift.openstack.org/developmen...)

Colin

edit flag offensive delete link more
0

answered 2011-02-20 00:45:26 -0500

zenn gravatar image

Thanks Colin, that worked just fine.

Do you it's recommended to use 5 zones or it's not compulsary?

Regards.

edit flag offensive delete link more
0

answered 2011-02-20 09:05:22 -0500

Only for a production system - 3 or 4 is fine for a test setup.

Colin

On 20 Feb 2011, at 00:45, zen question146048@answers.launchpad.net wrote:

Question #146048 on OpenStack Object Storage (swift) changed: https://answers.launchpad.net/swift/+question/146048 (https://answers.launchpad.net/swift/+...)

Status: Answered => Open

zen is still having a problem: Thanks Colin, that worked just fine.

Do you it's recommended to use 5 zones or it's not compulsary?

Regards.


You received this question notification because you are an answer contact for OpenStack Object Storage (swift).

edit flag offensive delete link more
0

answered 2013-10-17 06:00:39 -0500

s90752 gravatar image

Hi, I have three servers, one for proxy node, other twos for storage nodes. One storage node as one zone. If I just have 2 zones, can I have three replicas of each object?

thanks,

Andy Chang

edit flag offensive delete link more
0

answered 2013-10-17 06:14:40 -0500

s90752 gravatar image

Another case: If I just have three zones, and I have three replicas of each object, then one zone is dead, what will happen in this situation?

Thanks,

Andy Chang

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: 2011-02-19 23:17:27 -0500

Seen: 104 times

Last updated: Oct 17 '13