GithubHelp home page GithubHelp logo

johnlonganecker / rabbitmq-performance-app Goto Github PK

View Code? Open in Web Editor NEW
25.0 5.0 7.0 448 KB

A web app to graph and run load tests on RabbitMQ

Java 35.06% HTML 13.20% CSS 11.42% JavaScript 40.12% Dockerfile 0.20%

rabbitmq-performance-app's Introduction

RabbitMQ Performance App

A simple way to test the performance of your RabbitMQ Service

This project uses the RabbitMQ Performance Testing Tool to run benchmarks and to graph the results. I created a simple spring app that gives you an easy way to run benchmarks and graph results from the convenience of your browser!

Screenshot from the chrome

Run the Web App Server

Docker

docker pull johnlonganecker/rmq-perf-app
docker run -p 8080:8080 johnlonganecker/rmq-perf-app

Command Line

Download latest release

java -jar rmq-perf-app.jar

Cloud Foundry

mvn install
cf push
cf bind-service rabbitmq-perf-app rmq-service
cf restage rabbitmq-perf-app

Releases

Download from the releases page

Compile and Package

Have Maven and Java Installed

mvn install
mvn package

Take it out for a spin

If you don't have a rabbitmq service running you can run one with docker

docker pull rabbitmq
docker run -d -p 5672:5672 rabbitmq

Run the RabbitMQ Performance App

java -jar rmq-perf-app.jar

The server will use rabbitmq's default URI to connect to the docker container. If you need to set your own URI read below.

You can find the WebApp at localhost:8080

Enter a performance Scenario config and how you want to graph it by setting the Graph Config

You can find the documentation for both scenarios and graphs from this repo

Example Configs

Scenario

{
  "name":      "no-ack",
  "type":      "simple",
  "params":    [{"time-limit":     10}]
}

Graph

{
  "type": "chart",
  "fields": {
    "data-type":"time",
    "data-x-axis":"time (s)",
  }
}
{
  "type": "small-chart",
  "fields": {
    "data-type":"time",
    "data-x-axis":"time (s)",
  }
}
{
  "type": "summary",
  "fields": {}
}

Scenario

{
  "name":      "message-sizes-and-producers",
  "type":      "varying",
  "params":    [{"time-limit":     30,
                 "consumer-count": 0}],
  "variables": [{"name":   "min-msg-size",
                 "values": [0, 1000, 10000, 100000]},
                {"name":   "producer-count",
                 "values": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]}]
}

Graph

{
  "type": "chart",
  "fields": {
    "data-type": "series",
    "data-x-key":"producerCount",
    "data-x-axis":"producers",
    "data-y-axis":"rate (msg/s)",
    "data-plot-key":"send-msg-rate",
    "data-series-key":"minMsgSize"
  }
}

Scenario

{
  "name":      "message-sizes-large",
  "type":      "varying",
  "params":    [{"time-limit": 30}],
  "variables": [{"name":   "min-msg-size",
                 "values": [5000, 10000, 50000, 100000, 500000, 1000000]}]
}

Graph

{
  "type": "chart",
  "fields": {
    "data-type": "x-y",
    "data-x-key":"minMsgSize",
    "data-plot-keys":"send-msg-rate send-bytes-rate",
    "data-x-axis":"message size (bytes)",
    "data-y-axis":"rate (msg/s)",
    "data-y-axis2":"rate (bytes/s)",
    "data-legend":"ne"
  }
}

Scenario

{
  "name":      "rate-vs-latency",
  "type":      "rate-vs-latency",
  "params":    [{"time-limit": 30}]
}

Graph

{
  "type": "chart",
  "fields": {
    "data-type":"r-l",
    "data-x-axis":"rate attempted (msg/s)",
    "data-y-axis":"rate (msg/s)"
  }
}

Where do the host/user/pass/vhost get set?

In the scenario config you can specify a uri like this:

"uri": "amqp://user:password@host:port/vhost"

Cloud Foudry
If you bind a rabbitmq service (based on pivotal's rabbitmq release) to this app it will automatically get the credentials it needs to interact with rabbitmq.

You can of course override those credentials by adding the uri field to the scenario config

Defaults
If no credentials are provided this app will use a default rabbitmq uri to connect to the service

Report Bugs or Feature Requests

Submit a github issue

Contribute

Feel free to do something cool or grab something from the Todo list and just submit a Pull Request :)

ToDo

  • Make a bunch of useful examples
    • when creating new row have dialog box with pre-made exampels
    • examples endpoint (list examples for dialog box)
  • Make http server ports configurable through CLI
  • unit/smoke/integration tests
    • web app
    • spring server
  • Better Errors
    • UI Display
    • Messages from server
  • Store results
    • export results
    • import results
    • save results to PG/MySQL/other DB
    • store info of system with results?
      • number of nodes
      • policy
      • hostname (not full uri)

rabbitmq-performance-app's People

Contributors

johnlonganecker avatar soutenniza avatar

Stargazers

Bruno Gomes avatar  avatar Carlos Antonio avatar Mattias Fankhauser avatar  avatar Shantonu Sarker avatar Tim Lee avatar hejingxin avatar Landon Patmore avatar Albert Sun avatar  avatar Sven Westerlaken avatar  avatar Jubeen Shah avatar Artem Yarmoliuk avatar  avatar Amulya Sharma avatar Dmitry Shmakov avatar Chris Scheib avatar Aliaksandr Belik avatar Xin Zhang avatar Abhishek Rao avatar  avatar thomas avatar Rafael Jesus avatar

Watchers

 avatar James Cloos avatar Rafsanul Hasan avatar Qi Shao avatar Jubeen Shah avatar

rabbitmq-performance-app's Issues

Cannot run cf push

I installed cf CLI and tried running cf push. This called me to run either cf login or cf api, which I assumed was to be pointed at localhost:8080.

Running cf api http://127.0.0.1:8080 always results in a fail

Get http://127.0.0.1/v2/info: dial tcp 127.0.0.1:80: connect: connection refused TIP: If you are behind a firewall and require an HTTP proxy, verify the https_proxy environment variable is correctly set. Else, check your network connection.

What am I doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.