Sign inSign up

sjug/alpine-stress

By sjug

Updated about 10 years ago

Minimal docker image based on Alpine Linux with JMeter and stress baked in.

Image
0

4.7K

sjug/alpine-stress repository overview

alpine-stress

Minimal docker image for cloud deployment and automated load/stress testing based on Alpine Linux.

Other than the base image there are two main applications currently deployed:

  • stress to generate synthetic load on hosts
  • jmeter for load testing of web services and related web applications.

stress

In order to run stress, the script is looking for a minimum of three environment variables to be set:

  • RUN="stress" to switch case to stress execution
  • STRESS_CPU integer value of N workers spinning on sqrt()
  • STRESS_TIME integer value of N seconds after which to stop stress

JMeter

In order to run JMeter, the script is looking for a minimum of three environment variables to be set:

  • RUN="jmeter" to switch case to jmeter execution
  • TARGET_IP IPv4 address for which the script will attempt to make requests at
  • TARGET_PORT integer port that is open for requests
  • ROUTER_IP (optional) if we are passing requests through a router before hitting the webservice we need to add a hosts entry for the router and the service hostname.

Tag summary

Content type

Image

Digest

Size

104.6 MB

Last updated

about 10 years ago

docker pull sjug/alpine-stress