loadgenerator: switch to python 3.6

python3.7 is causing lockup in locust.
See https://github.com/locustio/locust/issues/843

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-15 12:22:38 -07:00
parent ba5bf6d4eb
commit afee0d099c
2 changed files with 2 additions and 3 deletions

View file

@ -1,4 +1,4 @@
FROM python:3 FROM python:3.6
COPY requirements.txt . COPY requirements.txt .
RUN pip install -r requirements.txt RUN pip install -r requirements.txt

View file

@ -7,5 +7,4 @@ if [[ -z "${FRONTEND_ADDR}" ]]; then
fi fi
set -x set -x
# add "timeout 3600" because locust locks up/freezes for some reason locust --host="http://${FRONTEND_ADDR}" --no-web -c "${USERS:-10}"
timeout 3600 locust --host="http://${FRONTEND_ADDR}" --no-web -c "${USERS:-10}" -r 10