Skip to content

sambaiz/loadtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load test

記事

tsenart/vegeta

Usage

Install tools (macOS)

$ brew install awscli pdsh jq vegeta packer
$ aws configure

Build AMI

$ packer build \
    -var 'aws_access_key=YOUR ACCESS KEY' \
    -var 'aws_secret_key=YOUR SECRET KEY' \
    packer.json
...
ap-northeast-1: ami-xxxxxxxx

Run (sample/sample.sh)

#!/bin/bash

export INSTANCE_NUM=3

export AMI_ID=ami-xxxxxxxx
export SECURITY_GROUP_IDS=sg-xxxxxxxx
export SUBNET_ID=subnet-xxxxxxxx

export RESOURCES_DIR=res

# https://github.com/tsenart/vegeta#attack
export VEGETA_CMD='vegeta attack -targets=res/targets.txt -rate=100 -duration=10s'

sh run.sh 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages