[rabbitmq-discuss] Mirror queues and poor write performance
andrew.rendell at gmail.com
Thu Oct 27 23:18:14 BST 2011
Thanks for the information, that is very useful.
The problem was my test. I had a large pool of consumers but was
single threading the producer on the theory that whilst TPS is very
important for the application I work with, the latency if an
individual operation is also critical. With a small change to use a
pool of producers I can get a far more acceptable rate.
Using multiple producers and consumers, running on a single processor,
dual core i7 I was able to achieve close to 850 transactional messages
per second with the consumer emptying the queues quickly enough that
queues lengths as you describe were always very close to zero. For the
same setup with a non-mirrored queue I was able to get 1400 messages
per second. This is much closer to the kind of performance difference
I was expecting. Given the relatively low power of the test machine
this is very good.
(At the risk of exposing my stupidity) I still don't quite understand
why the single threaded test was so poor with the mirror queue
compared to the non mirrored queue. My timings indicated that a single
threaded producer, with no concurrent consumers, would publish one
(transacted) message every five milliseconds for non-mirrored and one
per forty milliseconds for mirrored.
Thanks again for your help and for an excellent product!
On Oct 27, 2:41 pm, Matthew Sackman <matt... at rabbitmq.com> wrote:
> On Thu, Oct 27, 2011 at 02:37:47PM +0100, Matthew Sackman wrote:
> > At least in the first instance, HA has been designed to be write
> write => right.
> I shall have to have myself flogged for that one.
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss