Public Repository

Last pushed: a year ago
Short Description
Load generator. Generates load for cpu and memory.
Full Description

Has two applications.

web-app.py

Default application. Listens port 5000.
Endpoints:

  • / -- short help
  • /start?cpu=<true/false>&memory=<max memory in mb> -- starts load generator. Default values: cpu=true, memory=128
  • /stop -- stops load generator

app.py

To run it pass "app.py" as a container command.
Doesn't listen anything. It just starts, waits for 2 minutes, then generates load for two minutes, and then sleeps forever.
Takes parameters from environment variables:

  • CPU -- true/false, show if generate cpu load. Default is true
  • MEMORY -- max memory in mb. Default is 128
Docker Pull Command
Owner
kornsn

Comments (0)