Menu

#44 drain option...

Sarra Beta
closed
nobody
None
5
2018-06-02
2016-07-15
psilva
No

Some times, when queues build up, you want to make a change to how the queues are defined.
To start fresh, one needs to create new queues with new bindings, but just doing a restart
will abandon the old queue. so would like to have an option to invoke the tools with the 'drain' argument. This will remove the queue bindings, so that the queue stops filling up, and can be drained.... so that no notifications are missed.

sr_subscribe --drain config start

wait until the queue is empty.

then stop it.
then change the config, and start without --drain, and will work normally.

Discussion

  • psilva

    psilva - 2017-03-19

    with feature #61 save/restore, implemented. one could stop a consumer, note the queue (old_queue)
    start a using a new queue (and new bindings.) Then start a shovel with -save -queue old_queue.
    to obtain the messages from the old queue.
    sr_shovel -restore_queue new_queue
    will transfer the missing notifications to the new queue.

     
  • psilva

    psilva - 2017-07-29

    stopping the old queue, really means removing the binding on the old queue so that it stops getting messages.

     
  • psilva

    psilva - 2018-06-02
    • status: open --> closed
     
  • psilva

    psilva - 2018-06-02
     
MongoDB Logo MongoDB