From: Tommi Virtanen <tommi.virtanen@dreamhost.com>
To: Colin McCabe <cmccabe@alumni.cmu.edu>
Cc: Sage Weil <sage@newdream.net>, ceph-devel@vger.kernel.org
Subject: Re: long object names
Date: Thu, 21 Apr 2011 12:32:40 -0700 [thread overview]
Message-ID: <20110421193240.GA26545@dreamer> (raw)
In-Reply-To: <BANLkTi=SOKMdSZu3B_+6TS_8-tSJDeu98g@mail.gmail.com>
On Thu, Apr 21, 2011 at 12:27:01PM -0700, Colin McCabe wrote:
> I like this idea a lot. It does involve extra expense, but only for
> long file names. It also avoids object name collisions completely.
>
> One additional idea: can we make the chunking configurable?
> If we did a translation like this:
> abcdefg -> abc/def/g
> 123456789 -> 123/456/789
>
> prefix search would become a *lot* more efficient for rgw.
> On the other hand, the filesystem layer doesn't care about prefix
> search, so it could just configure the chunking to be after 200
> characters or something (at which point it's basically a no-op.)
The one big downside is that with configurable chunking, you no longer
have an always correct 1:1 mapping between object and file.
You might argue for always (not configurably) chunking at some
smaller, fixed boundary, so on the average you'd need to readdir()
less to serve a prefix search. I think this is what your last sentence
refers to. But that means more overhead with the directories.
The only real answers are available via benchmarks.
--
:(){ :|:&};:
next prev parent reply other threads:[~2011-04-21 19:32 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 4:42 long object names Sage Weil
2011-04-21 18:56 ` Tommi Virtanen
2011-04-21 19:27 ` Colin McCabe
2011-04-21 19:32 ` Tommi Virtanen [this message]
2011-04-21 20:03 ` Gregory Farnum
2011-04-21 21:09 ` Colin McCabe
2011-04-21 21:23 ` Yehuda Sadeh Weinraub
2011-04-21 21:44 ` Colin McCabe
2011-04-21 21:54 ` Yehuda Sadeh Weinraub
2011-04-21 22:01 ` Colin McCabe
2011-04-21 22:58 ` Zenon Panoussis
2011-04-21 23:04 ` Yehuda Sadeh Weinraub
2011-04-21 22:00 ` Tommi Virtanen
2011-04-21 22:23 ` Gregory Farnum
2011-04-21 22:25 ` Yehuda Sadeh Weinraub
2011-04-21 23:07 ` Tommi Virtanen
2011-04-22 15:44 ` Sage Weil
2011-04-22 16:34 ` Tommi Virtanen
2011-04-22 17:36 ` Colin McCabe
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=20110421193240.GA26545@dreamer \
--to=tommi.virtanen@dreamhost.com \
--cc=ceph-devel@vger.kernel.org \
--cc=cmccabe@alumni.cmu.edu \
--cc=sage@newdream.net \
/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.