[rabbitmq-discuss] Does clustering increase throughput?
matanzinger at gmail.com
Sun Feb 26 17:29:39 GMT 2012
I've read and experienced with rabbit mq clustering feature over 2
Below are the results I found, which I found quite strange:
0. Direct exchange named "myexchange" was defined.
1. rabbit1 & rabbit2 were configured to work in a cluster. both are
2. queue named "in.queue" was configured, and binded to routing key
3. 100k messages were enqueued with routing key "in". connection was
4. Running a single message handler on rabbit1 machine, connected to
Handling throuput: 2k messages / second
5. Running handlers on both rabbit1 & rabbit2 - each reached the
throuput of ~400 messages / second.
After stopping the message handler on rabbit2, handler on rabbit1
returned to 2k messages / second.
6. Running a single message handler on rabbit1 machine, connected to
Handling throuput: 400 messages / second
I still can't figure out this behavior:
I understood form the documentation that adding nodes to a cluster is
done in order to INCREASE throughput.
However, adding an additional handler leads to a degredation in
The second thing I can't figure out is the difference is throughput
between the cases of a single handler on rabbit1, and a single handler
If both nodes are active, and are using discs, than they should be
exactly the same.
There is no notion of master/slave.
If so - how come a different throughput received when running a single
handler on each of them?
Please help me understand these conflicts.
More information about the rabbitmq-discuss