Coder Social home page Coder Social logo

performance's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.