Book Image

RabbitMQ Essentials

By : David Dossot
Book Image

RabbitMQ Essentials

By: David Dossot

Overview of this book

Table of Contents (17 chapters)

Load testing AMQP


You're going to use Apache JMeter with the AMQP plugin to generate load on RabbitMQ. For this first test, your goal is to basically saturate the logs-archiver.py script in order to determine what the maximum processing capacity of a single running instance of it. After starting JMeter, add a Thread Group element under the Test Plan element and configure it as shown in the following screenshot:

JMeter thread group for the logs load test

As you can see, we will use 50 concurrent threads, each publishing messages to RabbitMQ in an infinite loop. This is way more than the total number of servers at CCM but remember, we want to find out the upper limit of what we can actually achieve. The following screenshot shows the configuration of the element in charge of publishing messages to RabbitMQ by adding an AMQP publisher sampler:

The JMeter AMQP Publisher sampler for the logs load test

Notice how you're simulating an Apache2 syslog message; the routing key is info.local2 (as per the...