* Metadata queries on Ceph/RADOS
@ 2011-11-22 8:11 Atish Kathpal
2011-11-22 17:09 ` Josh Durgin
[not found] ` <CAF3hT9Av361T-H-dejBHcipYu2otpUR9GpLgdhDvy6d-Z9qPpQ@mail.gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Atish Kathpal @ 2011-11-22 8:11 UTC (permalink / raw)
To: ceph-devel
Hello
Does RADOS support metadata queries? I have gone through librados and
the "rados" command line tool, and there doesn't seem to be a way for
me to say, query the object store saying: "Give me all objects with
Xattr Video = 1". The only way I can think of is to write some of my
own code using librados.
Any pointers if the system has a metadata service or something that I
can query?
(I have seen few diagrams showing a metadata cluster as part of Ceph
which supports metadata operations, how can I leverage that? reference
diagram: http://www.usenix.org/event/osdi06/tech/full_papers/weil/weil_html/fig/overview.png)
Regards
Atish
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Metadata queries on Ceph/RADOS
2011-11-22 8:11 Metadata queries on Ceph/RADOS Atish Kathpal
@ 2011-11-22 17:09 ` Josh Durgin
[not found] ` <CAF3hT9Av361T-H-dejBHcipYu2otpUR9GpLgdhDvy6d-Z9qPpQ@mail.gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Josh Durgin @ 2011-11-22 17:09 UTC (permalink / raw)
To: Atish Kathpal; +Cc: ceph-devel
On 11/22/2011 12:11 AM, Atish Kathpal wrote:
> Hello
>
> Does RADOS support metadata queries? I have gone through librados and
> the "rados" command line tool, and there doesn't seem to be a way for
> me to say, query the object store saying: "Give me all objects with
> Xattr Video = 1". The only way I can think of is to write some of my
> own code using librados.
That's right, RADOS operates on a single-object transaction level.
There's no way for it to support consistent reads of multiple objects
without rewriting much of the OSD - it's not designed for that. For your
use case, you could store your metadata in a trivial map (tmap) object
using librados' tmap_* functions. This is what radosgw uses for storing
which objects are in which buckets. These are slow for large mappings,
but we have plans to fix that (http://tracker.newdream.net/issues/1571).
> Any pointers if the system has a metadata service or something that I
> can query?
>
> (I have seen few diagrams showing a metadata cluster as part of Ceph
> which supports metadata operations, how can I leverage that? reference
> diagram: http://www.usenix.org/event/osdi06/tech/full_papers/weil/weil_html/fig/overview.png)
The metadata cluster is for the Ceph distruted file system, which is
another layer on top of RADOS.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Metadata queries on Ceph/RADOS
[not found] ` <CAF3hT9Av361T-H-dejBHcipYu2otpUR9GpLgdhDvy6d-Z9qPpQ@mail.gmail.com>
@ 2011-11-23 16:02 ` Atish Kathpal
0 siblings, 0 replies; 3+ messages in thread
From: Atish Kathpal @ 2011-11-23 16:02 UTC (permalink / raw)
To: Gregory Farnum; +Cc: ceph-devel@vger.kernel.org
Thank you for the insights.
Atish
On Tue, Nov 22, 2011 at 10:39 PM, Gregory Farnum
<gregory.farnum@dreamhost.com> wrote:
>
>
> On Tuesday, November 22, 2011, Atish Kathpal <atish.kathpal@gmail.com>
> wrote:
>> Hello
>>
>> Does RADOS support metadata queries?
> Nope. RADOS is not a database of any kind, sorry. The only metadata service
> is that used by te Ceph filesystem, and it can't do what you're after.
> I have gone through librados and
>> the "rados" command line tool, and there doesn't seem to be a way for
>> me to say, query the object store saying: "Give me all objects with
>> Xattr Video = 1". The only way I can think of is to write some of my
>> own code using librados.
>>
>> Any pointers if the system has a metadata service or something that I
>> can query?
> You could see of the object classes and map objects let you do what you
> want. I think we'll need to make them a bit more powerful before they're
> helpful for you, though. :/
>
>>
>> (I have seen few diagrams showing a metadata cluster as part of Ceph
>> which supports metadata operations, how can I leverage that? reference
>> diagram:
>> http://www.usenix.org/event/osdi06/tech/full_papers/weil/weil_html/fig/overview.png)
>>
>> Regards
>> Atish
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-23 16:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22 8:11 Metadata queries on Ceph/RADOS Atish Kathpal
2011-11-22 17:09 ` Josh Durgin
[not found] ` <CAF3hT9Av361T-H-dejBHcipYu2otpUR9GpLgdhDvy6d-Z9qPpQ@mail.gmail.com>
2011-11-23 16:02 ` Atish Kathpal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.