lulzcannon
v0.0.2
Published
RabbitMQ stress tester
Downloads
3
Maintainers
Readme
lulzcannon
Simple RabbitMQ stress tester in Nodejs
npm install -g lulzcannon
Usage
Command Line
lulzcannon stress.json
Where 'stress.json' is a file containing configuration.
Code
var lulzcannon = require( 'lulzcannon' );
lulzcannon.fire( config, function( stop )
{
// will stop stressing when 'stop()' is called
});
Config
{
"connection" :
{
"host": "url",
"port" : 5672,
"login" : "username",
"password" : "pass"
},
"queue" : "a_queue",
"rate" : 300,
"concurrent" : 4,
"data" :
[
"some data 1",
"some data 2"
]
}
Connection
Connection parameters - more information can be found here.
Queue
Queue to fire data into.
Rate
How fast data should be sent to rabbit - publishes per second.
Data
Data in this array will be randomly selected and sent to rabbit.
License
MIT