[Openstack] swift ringbuilder and disk size/capacity relationship
Mark Kirkwood
mark.kirkwood at catalyst.net.nz
Thu Mar 3 21:32:25 UTC 2016
On 03/03/16 03:57, Peter Brouwer wrote:
> Hello
>
> I am trying to find some information on the relationship of the ring
> (builder) structure of swift and the size of disks used, i.e. how is
> capacity of a disk managed.
> I've seen many docs/blogs explaining the ring and partitions but I have
> not seen any info on how available space per disk is managed, i.e. the
> relationship between disk size and allocating ring partitions.
>
> Do all disks in a ring need to be of the same capacity? If not how is
> swift handling the amount of free space?
>
> Any pointers to documentation on this?
>
You specify a weight for each device that is added to the ring, this
lets you cope with different sized disks e.g:
Suppose sdb is 1TB and sdc 500GB
$ swift-ring-builder object.builder add r1z1-192.168.122.21:6000/sdb 1
$ swift-ring-builder object.builder add r1z1-192.168.122.21:6000/sdc 0.5
Cheers
Mark
More information about the Openstack
mailing list