Coder Social home page Coder Social logo

resource-eater's Introduction

Application to create dummy load on system, it can also expose as different service endpoint URLs to mimic different micro-services to verify routing used it for testing AWS ecs autoscaling.

Docker Build: Docker Build

Build Image

mvn clean package

docker build -t nirmalsuthar/resource_eater .

docker push nirmalsuthar/resource_eater:latest

Run Docker Image

docker run -it -e JAVA_OPTS='-DSERVICE_NAME=service1' --rm -p 8080:8080 --name resource_eater_cnt nirmalsuthar/resource_eater

Endpoints

Actuator/Info

http://localhost:8080/api/v1/service1/actuator http://localhost:8080/api/v1/service1/info

Eating Memory

Each iteration increase memory usage by 1 MB.

http://localhost:8081/api/v1/service1/memory?iteration=1000&pause=0

Eating CPU

http://localhost:8080/api/v1/service1/cpu/iteration/sync?iteration=99999999

http://localhost:8080/api/v1/service1/cpu/duration/async?load=0.8&duration=3000

Suicide

http://localhost:8080/api/v1/service1/exit?code=-1

Note : If JAVA_OPTS is not orivided then service1 will become unknown

resource-eater's People

Contributors

nirmal-mewada avatar

Stargazers

 avatar

Watchers

 avatar

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.