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 offTHREAD_COUNT: the number of threads to use (in a single process) for
sending off requestsCONNECTION_POOL_SIZE: the number of connections to use in the connection
pool that sends all the requestsBASE_URL: The base URL to send requests to, relative to
/${WORKER_INDEX}/${REQUEST_INDEX}SPECIAL_HEADER: Special header to grab response metadata fromREQUEST_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
Content type
Image
Digest
Size
336.9 MB
Last updated
over 6 years ago
docker pull dhermes/rapid-fire