Re: Any way to list the keys&values of omap in certain range?

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

 



Software Engineer #42 @ http://inktank.com | http://ceph.com
On Mon, Oct 27, 2014 at 1:52 AM, Plato Zhang <sangongs@xxxxxxxxx> wrote:
> Hi, all!
>
> We are trying to utilize omap to store kv map.
>
> However, we couldn't find a proper way to scan a certain key range of omap.
>
> We do can use arg `max_return' to finish this job by iterating .
> But if `max_return' is set too large, then there will be io waste
> while the number of keys is few.
> On the contrary, if it is set too small, then there will also be waste
> while the number of keys is too many.
>
> Is there any solution?

This functionality is not implemented in RADOS right now. It sounds
like a good feature though! You can submit feature requests at
tracker.ceph.com, or send in PRs. I think this should be fairly simple
to implement, based on the "CEPH_OSD_OP_OMAPGETKEYS" section of
ReplicatedPG::do_osd_ops, and then following the patterns in exposing
it via librados.
-Greg
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux