"rebuilding indices from scratch"

688 views
Skip to first unread message

Carl Hörberg

unread,
Aug 21, 2015, 7:25:50 AM8/21/15
to rabbitmq-users
When a node in a cluster that wasn't gracefully shutdown (or sometimes even when gracefully shutdown too i feel like) starts up again the indicies are being rebuilt. This takes a very long time, often 10-30min, when there's several hundreds of GBs of persistent messages. Are the any speedups that can be made here? Does every byte have to be read from disk when rebuilding the indexes?

We run only mirrored queues so all messages are then thrown away when the node is up and are being resynced from the other nodes. I guess we in that case can just drop the msg_store_transient dir before starting?

Michael Klishin

unread,
Aug 21, 2015, 7:39:20 AM8/21/15
to rabbitm...@googlegroups.com
It's a sequential scan over all messages.
I can't think of speed-ups other than "use an SSD."

MK

Alvaro Videla

unread,
Aug 21, 2015, 7:41:14 AM8/21/15
to rabbitm...@googlegroups.com
Also AFAIK the transient message store is not scanned during startup/recovery

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laing, Michael

unread,
Aug 21, 2015, 7:55:29 AM8/21/15
to rabbitm...@googlegroups.com
Yet another argument for transient queues and non-persistent messages. :) ml

To post to this group, send email to rabbitm...@googlegroups.com.

Carl Hörberg

unread,
Aug 21, 2015, 8:00:34 AM8/21/15
to rabbitmq-users
Typo, I meant msg_store_persistent
Reply all
Reply to author
Forward
0 new messages