From: Josh Durgin <josh.durgin@dreamhost.com>
To: Atish Kathpal <atish.kathpal@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: Metadata queries on Ceph/RADOS
Date: Tue, 22 Nov 2011 09:09:25 -0800 [thread overview]
Message-ID: <4ECBD745.1060708@dreamhost.com> (raw)
In-Reply-To: <CAMiHsJJN1UB++ijcorzBBi=YD9eawur62WF9L1QxtwwiH78HXw@mail.gmail.com>
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.
next prev parent reply other threads:[~2011-11-22 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 8:11 Metadata queries on Ceph/RADOS Atish Kathpal
2011-11-22 17:09 ` Josh Durgin [this message]
[not found] ` <CAF3hT9Av361T-H-dejBHcipYu2otpUR9GpLgdhDvy6d-Z9qPpQ@mail.gmail.com>
2011-11-23 16:02 ` Atish Kathpal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ECBD745.1060708@dreamhost.com \
--to=josh.durgin@dreamhost.com \
--cc=atish.kathpal@gmail.com \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.