loadgenerator: kill periodically to prevent lockup
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
b58c8ba922
commit
ba5bf6d4eb
2 changed files with 6 additions and 5 deletions
|
@ -32,8 +32,8 @@ spec:
|
||||||
value: "10"
|
value: "10"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 300m
|
||||||
memory: 64Mi
|
memory: 256Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 500m
|
||||||
memory: 128Mi
|
memory: 512Mi
|
||||||
|
|
|
@ -7,4 +7,5 @@ if [[ -z "${FRONTEND_ADDR}" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -x
|
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
|
||||||
|
|
Loading…
Reference in a new issue