Perhaps this is a good use-case for a ceph-mgr plug-in module that can watch the pool stats and execute the necessary RBD trash purge API methods when needed. There are several examples of these plug-ins here [1]. [1] https://github.com/ceph/ceph/tree/master/src/pybind/mgr On Thu, Apr 19, 2018 at 7:58 AM, Theofilos Mouratidis <mtheofilos@xxxxxxxxx> wrote: > Hello ceph devs, > > The openstack guys at CERN wanted this rbd trash purge command to be > implemented to delete cinder images that have been expired in the > trash space. The current implementation is passive, which means that > it requires some kind cron job to clean the trashed images. > As they have too many cron dependencies and they don't want more, they > ask to create a trigger for the purge. Let's say when one osd becomes > nearfull (~80%), execute the command automatically to save some space. > What's the ceph way to implement something like that, can someone > point me to something similar so I can create the PR? > > Thanks, > Theo > -- > 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 -- Jason -- 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