Skip to content

Simple Spring boot REST application to simulate CPU/memory bound jobs to test in K8s

Notifications You must be signed in to change notification settings

leonardopuleggi/performance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java fake load simulator

Simple Spring boot REST application to simulate CPU/memory bound jobs to test in K8s

When started, the application with have the following endpoints

  1. http://localhost:8080/api/cpu-bound?time=10&limit=20 - 10 seconds CPU-bound job with 20% CPU - by default (i.e http://localhost:8080/api/cpu-bound), both 10

  2. http://localhost:8080/api/memory-bound?time=10&limit=300 10 seconds CPU-bound job with 300MB RAM - by default (i.e http://localhost:8080/api/memory-bound), both 10

  3. http://localhost:8080/api/normalJobs - randomize jobs between 5 and 20 seconds, 50 to 70% CPU, 30 to 200 MB RAM

  4. http://localhost:8081/actuator/health - Spring actuator endpoint - liveness probe

Using GitHub - msigwart/fakeload: FakeLoad is an open-source Java library which provides developers with a simple way of producing “fake" system loads in their applications.

About

Simple Spring boot REST application to simulate CPU/memory bound jobs to test in K8s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published