loadgenerator: kill periodically to prevent lockup

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-15 11:13:55 -07:00
parent b58c8ba922
commit ba5bf6d4eb
2 changed files with 6 additions and 5 deletions

View file

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