Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aatarasoff/spring-cloud-load-balancing-sandbox
https://github.com/aatarasoff/spring-cloud-load-balancing-sandbox
marathon ribbon spring-boot spring-cloud
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aatarasoff/spring-cloud-load-balancing-sandbox
- Owner: aatarasoff
- Created: 2017-11-03T13:25:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T07:23:21.000Z (almost 7 years ago)
- Last Synced: 2023-03-12T06:52:20.935Z (almost 2 years ago)
- Topics: marathon, ribbon, spring-boot, spring-cloud
- Language: Java
- Size: 77.1 KB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```
6. Launch sandbox app: `./gradlew :load-balancing-sandbox:bootRun`
7. Install vegeta with brew or another way
8. 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`
9. Feel free to scale app as a standard marathon feature
10. Make instance slower or faster with passing env variable: `http host:port?delay?ms=`
11. Change Ribbon configuration as you want