Sign inSign up

dhermes/rapid-fire

By dhermes

Updated over 6 years ago

Fire off requests in rapid fire

Image
0

1.1K

dhermes/rapid-fire repository overview

Send a large number of requests via

GET ${BASE_URL}/${WORKER_INDEX}/${REQUEST_INDEX}

This is intended to be configured with environment variables, all of which are required:

  • REQUEST_COUNT: the number of requests to fire off
  • THREAD_COUNT: the number of threads to use (in a single process) for sending off requests
  • CONNECTION_POOL_SIZE: the number of connections to use in the connection pool that sends all the requests
  • BASE_URL: The base URL to send requests to, relative to /${WORKER_INDEX}/${REQUEST_INDEX}
  • SPECIAL_HEADER: Special header to grab response metadata from
REQUEST_COUNT=10
THREAD_COUNT=2
CONNECTION_POOL_SIZE=10
BASE_URL=https://google.com
SPECIAL_HEADER=content-length
docker run \
  --rm \
  --interactive \
  --tty \
  --env "REQUEST_COUNT=${REQUEST_COUNT}" \
  --env "THREAD_COUNT=${THREAD_COUNT}" \
  --env "CONNECTION_POOL_SIZE=${CONNECTION_POOL_SIZE}" \
  --env "BASE_URL=${BASE_URL}" \
  --env "SPECIAL_HEADER=${SPECIAL_HEADER}" \
  dhermes/rapid-fire:latest

Tag summary

Content type

Image

Digest

Size

336.9 MB

Last updated

over 6 years ago

docker pull dhermes/rapid-fire