This is an attempt to reproduce the problems described in
Tools used:
- docker (http://www.docker.com)
- fig (http://www.fig.sh)
- python2 with SimpleHTTPServer (you can use python3 with "cmd": "python3 -m http.server $PORT" instead)
- ab (apache bench http://httpd.apache.org/docs/2.2/en/programs/ab.html)
- httpie for the "http" command (https://github.com/jakubroztocil/httpie)
I used Mac OS with boot2docker for testing but Linux with docker should work to.
Steps I tried to reproduce the problem:
- adjust config.sh if necessary
fig up
to start the docker containers- execute
./show-config.sh
- Open the old Marathon GUI at http://${DOCKER_HOST_IP}:8080/
- Open the new Marathon GUI at http://${DOCKER_HOST_IP}:8081/
- Open cadvisor with the CPU usage for both Marathons at http://${DOCKER_HOST_IP}:9000/
- Startup apps with tasks with the
./one-app.sh
or./ten-apps.sh
scripts - Wait for the deployments to finish (you can watch cadvisor for fun)
- Run
./query-apps.sh
, watch CPU usage - Look at query-apps.sh results in stats-8080.txt for old and stats-8081.txt for new Marathon.