Ask Your Question
0

swift region options

asked 2013-06-19 22:40:24 -0500

Hi Guys,

I installed a swift cluster.

4 nodes storage

2 swift-proxy with + loadbalancer

I make only a zone, with 4 node storage hosts.

When i did a command rings, him show me a warning, swift-ring-builder account.builder add z1-10.137.14.8:6002/mpathbp1 100 WARNING: No region specified for z1-10.137.14.8:6002/mpathbp1. Defaulting to region 1.

how can i set a region to swift? I am using version 1.8

I will need this when i set the new cluster in another datacenter.

Someone has an example?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-06-19 22:46:09 -0500

torgomatic gravatar image

Set the region by prepending rN to the device specifier.

For example, "add z1-10.137.14.8:6002/mpathbp1 100" would become "add r1z1-10.137.14.8:6002/mpathbp1 100".

Note that r1 is the default region, so those two commands actually produce equivalent ring builder files; it's just that the second one won't emit the warning.

edit flag offensive delete link more
0

answered 2013-06-19 22:56:32 -0500

Thanks man.

So i did only a zone, because my server are in the same local. But on the documentation, they have one zone per server.

what's better, a zone per server or a zone with multiple server?

i thinking when i'll need of another place in same datacenter. like another group host in the same datacenter, like zone1 with 4 server and zone 2 with 4 server more.

edit flag offensive delete link more
0

answered 2013-06-19 22:57:03 -0500

Thanks Samuel Merritt, that solved my question.

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-06-19 22:40:24 -0500

Seen: 73 times

Last updated: Jun 19 '13