When creating new contents, it is possible for x reasons that every chunk is not put (network error, server not responding ...).
If it is possible to recreate the missing chunks (like when having 2 copies when 3 are needed). Why not do it?
But we should be able to control when to recreate the content (nobody wants to do it on heavy load).
We create a way to notify on a incomplete content.
To use it you just simply need to add a handler to the
Here comes a simple example:
Add to oio-event-handlers.conf
pipeline = content_rebuild
use = egg:oio#notify
tube = rebuild
queue_url = beanstalk://127.0.0.1:11300
And to start the rebuilding of the content
oio-blob-rebuilder $NAMESPACE --beanstalkd 127.0.0.1:11300 --beanstalkd-tube rebuild