toddoxford / heroku-vegeta

Using Heroku as a distributed stress-testing platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

heroku-vegeta

Run vegeta as a distributed load testing tool on Heroku for free. This project has two goals: explore diffent ways to deploy applications on heroku platform and provide a simple tool to easily run various load testing scenarios.

Usage

Clone repository:

git clone https://github.com/sosedoff/heroku-vegeta.git
cd heroku-vegeta

Make sure your heroku cli is working:

heroku apps

Copy example configuration file:

cp config.json.example config.json

After you make changes to config file, run setup command:

./script/setup

Once done, you can start the test:

./script/run

Config

Example configuration for testing:

{
  "nodes": 3,
  "targets": "GET https://mywebsite.com",
  "duration": "30s",
  "rate": "50"
}

Options:

  • nodes - Number of heroku applications to spawn
  • targets - List of URLS to hit
  • duration - Test duration. 10s, 30s, 1m, 5m, etc
  • rate - Number of requests per second per node

About

Using Heroku as a distributed stress-testing platform


Languages

Language:Go 53.4%Language:Ruby 41.6%Language:Shell 4.9%