[Openstack] (Juno) Multiple rings Swift

Amit Anand aanand at viimed.com
Mon Dec 22 20:29:37 UTC 2014


Sorry the command should read

swift-ring-builder account*-1*.builder add hq-ip#1:6002/sda3 100 ?

I forgot to add the -1 in...

On Mon, Dec 22, 2014 at 3:00 PM, Amit Anand <aanand at viimed.com> wrote:

> Thanks Christian I think thats exactly what I needed - I will try and make
> 2 new rings and see how that works. You wouldnt per chance know how I would
> limit the replicas, ie 2 in the Paris region and 1 at HQ? I only want one
> replica to goto the HQ region...
>
>
> So for instance, if I have two nodes in the my HQ region and I only want
> one replica, would I run the following commands:
>
> swift-ring-builder account.builder add hq-ip#1:6002/sda3 100
>
> swift-ring-builder account.builder add hq-ip#2:6002/sda3 100
>
> If the nodes in Paris are as is follows:
>
> he minimum number of hours before a partition can be reassigned is 1
> Devices:    id  region  zone      ip address  port  replication ip
>  replication port      name weight partitions balance meta
>              0       1     1       10.7.5.51  6002       10.7.5.51
>      6002      sda3 100.00        384    0.00
>              1       1     1       10.7.5.51  6002       10.7.5.51
>      6002      sda4 100.00        384    0.00
>              2       1     1       10.7.5.52  6002       10.7.5.52
>      6002      sda3 100.00        384    0.00
>              3       1     1       10.7.5.52  6002       10.7.5.52
>      6002      sda4 100.00        384    0.00
>
>
> That for some reason doesnt seem correct to me but what do I know. Also,
> if you notice i my command for the name i gave hq-ip# - do I have to use
> the naming convention r#z#-ip when I add? Thanks
>
> Amit
>
>
>
> On Mon, Dec 22, 2014 at 1:46 PM, Christian Schwede <
> christian.schwede at enovance.com> wrote:
>
>> On 22.12.14 19:11, Amit Anand wrote:
>> > Now I want to try and do the following below:
>> >
>> >
>> http://techs.enovance.com/7094/openstack-swift-2-0-introducing-storage-policies
>> >
>> > So pretty much have a Paris and Montreal center as described - I want to
>> > add a third datacenter to each as replication. So it the blog it says
>> > create new rings - there is where I am getting confused - may someone
>> > help and let me know what are the commands to create a whole new ring??
>>
>> Author of the post here :)
>>
>> Use the following command to create another ring:
>>
>> swift-ring-builder /etc/swift/object-1.builder create 15 3 1
>>
>> Storage Policies are addressed by an index number (see the blog post,
>> for example storage-policy:0), and these are related to the ring files:
>>
>> storage-policy:0 -> /etc/swift/object-0.ring.gz
>>
>> storage-policy:1 -> /etc/swift/object-1.ring.gz
>>
>> and so on.
>>
>> Policy 0 is the default one, and if there is no ring file named
>> "/etc/swift/object-0.ring.gz" Swift tries to use
>> "/etc/swift/object.ring.gz".
>>
>> Let me know if this helps!
>>
>> Christian
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141222/09bb7f3d/attachment.html>


More information about the Openstack mailing list