- Run docker-compose with following command:
docker-compose up -d - Check marathon at
localhost:8080 - Build cool-app:
./gradlew dockerBuild - Deploy cool-app:
http POST :8080/v2/apps?force=true < cool-app.json - Make changes in
/etc/hostsfile:
127.0.0.1 mesos-slave.zone1
127.0.0.1 mesos-slave.zone2
- Launch sandbox app:
./gradlew :load-balancing-sandbox:bootRun - Install vegeta with brew or another way
- 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 - Feel free to scale app as a standard marathon feature
- Make instance slower or faster with passing env variable:
http host:port?delay?ms=<baseline_delay_ms> - Change Ribbon configuration as you want