Simple Spring boot REST application to simulate CPU/memory bound jobs to test in K8s
When started, the application with have the following endpoints
-
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
-
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
-
http://localhost:8080/api/normalJobs - randomize jobs between 5 and 20 seconds, 50 to 70% CPU, 30 to 200 MB RAM
-
http://localhost:8081/actuator/health - Spring actuator endpoint - liveness probe