Skip to content

JamesFrost/lulzcannon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple RabbitMQ stress tester in Nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published