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

@ -32,8 +32,8 @@ spec:
value: "10"
resources:
requests:
cpu: 100m
memory: 64Mi
cpu: 300m
memory: 256Mi
limits:
cpu: 200m
memory: 128Mi
cpu: 500m
memory: 512Mi

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