swift region options

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

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- 100 WARNING: No region specified for z1- 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

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

torgomatic gravatar image

Set the region by prepending rN to the device specifier.

For example, "add z1- 100" would become "add r1z1- 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

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

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

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

Thanks Samuel Merritt, that solved my question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-06-19 22:40:24 -0600

Seen: 107 times

Last updated: Jun 19 '13