All of lore.kernel.org
 help / color / mirror / Atom feed
* efficient removal of old objects
@ 2012-02-01  0:33 Sage Weil
  2012-02-01  0:52 ` Josh Durgin
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Sage Weil @ 2012-02-01  0:33 UTC (permalink / raw)
  To: ceph-devel

Currently rgw logs objects it wants to delete after some period of time, 
and an radosgw-admin command comes back later to process the log.  It 
works, but is currently slow (one sync op at a time).

A better approach would be to mark objects for later removal, and have the 
OSD do it in some more efficient way.  wip-objs-expire has a client side 
(librados) interface for this.

I think there are a couple questions:

Should this be generalized to saying "do these osd ops at time X" instead 
of "delete at time X".  Then it could setxattr, remove, call into a class, 
whatever.

How would the OSD implement this?  A kludgey way would be to do it during 
scrub.  The current scrub implementation may make that problematic because 
it does a whole PG at time, and we probably don't want to issue a whole 
PG's worth of deletes at a time.  Is there a way to make that less 
painful?  

Not using scrub means we need some sort of index to keep track of objects 
with delayed events.  Using a collection for this might work, but loading 
all this state into memory would be slow if there were too many events 
registered.

Given all that, and that we need a solution to the expiration soon 
(weeks), do we
 - do a complete solution now,
 - parallelize radosgw-admin log processing,
 - or hack it into scrub?

sage

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-02-02  0:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-01  0:33 efficient removal of old objects Sage Weil
2012-02-01  0:52 ` Josh Durgin
2012-02-01  1:02 ` Tommi Virtanen
     [not found]   ` <CAC-hyiExnN6CxMh=+5tLoZy3T0=Mx6Y3P796rG3L01mZ-=+vOg@mail.gmail.com>
2012-02-01  8:04     ` Yehuda Sadeh Weinraub
2012-02-02  0:11   ` Mark Kampe
2012-02-01  1:19 ` Josh Durgin
2012-02-01  8:26 ` Yehuda Sadeh Weinraub
2012-02-01 17:39   ` Gregory Farnum
2012-02-01 18:53     ` Yehuda Sadeh Weinraub
2012-02-01 19:35       ` Gregory Farnum
2012-02-01 20:01         ` Yehuda Sadeh Weinraub
2012-02-01 19:43       ` Sage Weil

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.