Re: Doubts about RadosGW and Metadata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 28, 2013 at 1:12 AM, Wido den Hollander <wido@xxxxxxxx> wrote:
> Hi,
>
>
> On 05/28/2013 10:03 AM, Alvaro Izquierdo Jimeno wrote:
>>
>> Hi!
>>
>> I’m using rados Gateway with the Swift API to handle objects into Ceph.
>> I’m very interesting to handle metadata with the objects too. So, I can
>> add metadata headers with a given format (X-Container-Meta-X : Y) and
>> get it back again without problem. But, after this, I have several
>> doubts about it:
>>
>> 1.- Which pool stores the metadata? By default, the objects are stored
>> in .rgw.buckets pool. After a updating metadata request (POST request),
>> I can see with ‘rados df’  that the only one pool updated is
>> .rgw.buckets. So, Is the metadata and the objects stored in the same pool?
>>

Just note that we do have a plan to be able to set up different data
and metadata pools for rgw, and it has been mostly implemented as part
of the disaster recovery / geo-replication work that will go into
dumpling (just missing an api to configure it).


Yehuda

>
> Yes, it's stored as RADOS attributes. See this example:
>
> root@monitor:~# rados -p .rgw.buckets listxattr 8421179.1_auroracloud.png
> user.rgw.acl
> user.rgw.content_type
> user.rgw.etag
> user.rgw.x-amz-acl
> user.rgw.x-amz-date
> root@monitor:~#
>
>
>> 2.- Can I setup this? I mean If I can store the metadata in a different
>> pool or in a Database?
>>
>
> No, that is not possible. It's stored as RADOS xattrs.
>
>
>> 3.- By the way, is possible to search into radosgw by a metadata? For
>> instance, searching how many objects have the metadata
>> X-Container-Meta-X  equal to  Y.  If the first question in this points
>> is yes, can I make this kind of searching from the Swift API?
>>
>
> No, RADOS doesn't support search queries like that. You can't say: "Hey,
> give me all objects with xattr Y = Z"
>
> --
> Wido den Hollander
> 42on B.V.
>
> Phone: +31 (0)20 700 9902
> Skype: contact42on
>
>> Thanks you so much and best regards,
>>
>> Álvaro.
>>
>>
>> ____________
>> Verificada la ausencia de virus por G Data AntiVirus Versión: AVA
>> 22.9938 del 28.05.2013 Noticias de virus: www.antiviruslab.com
>> <http://www.antiviruslab.com>
>>
>>
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@xxxxxxxxxxxxxx
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>
>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux