Artillery based performance testing that runs on the serverless framework, supporting high-order functions like Stress, Soak, Load, Spike and DDOS attacks
Last updated 5 months ago by dweller23 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install whirlwind 
SYNC missed versions from official npm registry.

Whirlwind Logo

Whirlwind is a performance testing library that allows you to run the following higher order functions:

  • Load
  • Spike
  • Stress
  • Soak
  • DDOS

Whirlwind uses the AWESOME Artillery.io toolkit and runs on Serverless Framework and on Amazon Lambda, allowing you to generate an insane amount of load. You can even simulate a DDOS attack by distributing the load across the globe!

For an example of how to use this, please see the whirlwind-example repository.


  1. Set permission policy for an IAM user with the following config:
    "Version": "2012-10-17",
    "Statement": [
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
            "Resource": "*"
  1. Create an ~/.aws/credentials file with:
  1. Make sure you have Node installed (tested with Node v8.9.3 and may work with higher).

  2. Export these ENV variables:

export INFLUX_HOST=<your ip>
export INFLUX_PASSWORD=<your password>
export INFLUX_USER=<your user>
export INFLUX_DB=<the database>
export TARGET_HOST=<target host>

Optional steps:

Route all Lambda traffic through 1 IP address

You may want to send all requests from 1 IP address, for example to test a server may still be in development and not accessible from Internet. With AWS VPC and NAT gateway it's possible to run all Lambda functions in a private subnet and route all the traffic through a leased IP address.

Here is a video how to configure this on AWS side:

Setting up Lambdas to use a static IP address

and a tutorial: How to setup a VPC for Lambdas

You also need to setup securityGroupIds and subnetIds in your serverless.yml file. You can see a commented example in the file in this repo. A securityGroup is defined in VPC Dashboard -> Security -> Security Groups, you can use a default security group with open internet access.

Setup an EC2 influxDB server for logging test results and errors

You can install InfluxDB on a t2.micro (or higher) instance with Ubuntu 16.04. First run apt-get update and apt-get upgrade then follow official installation tutorial Installing influxDB

You then need to setup access to influxDB over the internet by following this tutorial.

Finally you need to open port 5001 (this is a default port for influxDB, you can choose a different port) on your EC2 instance. Here is how.


Graphana is a log watcher which can directly connect to influxDB and show your test logs in real-time. It's really easy to use and generates great looking graphs.

We used Graphana hosted on their servers. This is the "We Host It" option that you can see on this page.

Also this blog shows some usage and installation of influxDB and Graphana hosted on your server.


This project has been forked from the awesome serverless-artillery project. A huge thank you goes to the Nordstorm team for making this OSS and allowing us to build Whirlwind on top of their hard work.

Current Tags

  • 1.1.0                                ...           latest (5 months ago)

5 Versions

  • 1.1.0                                ...           5 months ago
  • 1.0.0                                ...           2 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (0)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |