swift region options

Asked by Jose Augusto Sousa on 2013-06-19

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?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Samuel Merritt
Solved:
2013-06-19
Last query:
2013-06-19
Last reply:
2013-06-19
Best Samuel Merritt (torgomatic) said : #1

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.

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.

Thanks Samuel Merritt, that solved my question.