Skip to content

Repository files navigation

Spring Cloud Client Load Balancing Sandbox

Guide

  1. Run docker-compose with following command: docker-compose up -d
  2. Check marathon at localhost:8080
  3. Build cool-app: ./gradlew dockerBuild
  4. Deploy cool-app: http POST :8080/v2/apps?force=true < cool-app.json
  5. Make changes in /etc/hosts file:
127.0.0.1       mesos-slave.zone1
127.0.0.1       mesos-slave.zone2
  1. Launch sandbox app: ./gradlew :load-balancing-sandbox:bootRun
  2. Install vegeta with brew or another way
  3. Make some load with command: http :10080/callme && echo "GET http://localhost:10080/callme" | vegeta attack -rate=30 -duration=20s | tee results.bin | vegeta report
  4. Feel free to scale app as a standard marathon feature
  5. Make instance slower or faster with passing env variable: http host:port?delay?ms=<baseline_delay_ms>
  6. Change Ribbon configuration as you want

About

No description or website provided.

Topics

Resources

Stars

9 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages