Updated loadgenerator to support locust 1.0.2 (#357)
* updated loadgenerator to support locust 1.0.2 * removed rate parameter
This commit is contained in:
parent
fee184176f
commit
491576dfa0
4 changed files with 25 additions and 17 deletions
|
@ -32,4 +32,4 @@ if test $STATUSCODE -ne 200; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# else, run loadgen
|
# else, run loadgen
|
||||||
locust --host="http://${FRONTEND_ADDR}" --no-web -c "${USERS:-10}" 2>&1
|
locust --host="http://${FRONTEND_ADDR}" --headless -u "${USERS:-10}" 2>&1
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import random
|
import random
|
||||||
from locust import HttpLocust, TaskSet, between
|
from locust import HttpUser, TaskSet, between
|
||||||
|
|
||||||
products = [
|
products = [
|
||||||
'0PUK6V6EV0',
|
'0PUK6V6EV0',
|
||||||
|
@ -76,6 +76,6 @@ class UserBehavior(TaskSet):
|
||||||
viewCart: 3,
|
viewCart: 3,
|
||||||
checkout: 1}
|
checkout: 1}
|
||||||
|
|
||||||
class WebsiteUser(HttpLocust):
|
class WebsiteUser(HttpUser):
|
||||||
task_set = UserBehavior
|
tasks = [UserBehavior]
|
||||||
wait_time = between(1, 10)
|
wait_time = between(1, 10)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
locustio==0.13.0
|
locust==1.0.2
|
||||||
|
|
|
@ -2,23 +2,31 @@
|
||||||
# This file is autogenerated by pip-compile
|
# This file is autogenerated by pip-compile
|
||||||
# To update, run:
|
# To update, run:
|
||||||
#
|
#
|
||||||
# pip-compile --output-file requirements.txt requirements.in
|
# pip-compile --output-file=requirements.txt requirements.in
|
||||||
#
|
#
|
||||||
certifi==2018.11.29 # via geventhttpclient-wheels, requests
|
certifi==2018.11.29 # via geventhttpclient, requests
|
||||||
chardet==3.0.4 # via requests
|
chardet==3.0.4 # via requests
|
||||||
click==7.0 # via flask
|
click==7.0 # via flask
|
||||||
flask==1.0.2 # via locustio
|
configargparse==1.2.3 # via locust
|
||||||
gevent==1.4.0 # via geventhttpclient-wheels, locustio
|
flask-basicauth==0.2.0 # via locust
|
||||||
geventhttpclient-wheels==1.3.1.dev2 # via locustio
|
flask==1.1.2 # via flask-basicauth, locust
|
||||||
|
gevent==20.5.2 # via geventhttpclient, locust
|
||||||
|
geventhttpclient==1.4.2 # via locust
|
||||||
greenlet==0.4.15 # via gevent
|
greenlet==0.4.15 # via gevent
|
||||||
idna==2.8 # via requests
|
idna==2.8 # via requests
|
||||||
itsdangerous==1.1.0 # via flask
|
itsdangerous==1.1.0 # via flask
|
||||||
jinja2==2.10 # via flask
|
jinja2==2.11.2 # via flask
|
||||||
locustio==0.13.0 # via -r requirements.in
|
locust==1.0.2 # via -r requirements.in
|
||||||
markupsafe==1.1.0 # via jinja2
|
markupsafe==1.1.0 # via jinja2
|
||||||
msgpack-python==0.5.6 # via locustio
|
msgpack==1.0.0 # via locust
|
||||||
pyzmq==17.0.0 # via locustio
|
psutil==5.7.0 # via locust
|
||||||
requests==2.21.0 # via locustio
|
pyzmq==17.0.0 # via locust
|
||||||
six==1.12.0 # via geventhttpclient-wheels, locustio
|
requests==2.21.0 # via locust
|
||||||
|
six==1.12.0 # via geventhttpclient
|
||||||
urllib3==1.24.2 # via requests
|
urllib3==1.24.2 # via requests
|
||||||
werkzeug==0.14.1 # via flask
|
werkzeug==1.0.1 # via flask
|
||||||
|
zope.event==4.4 # via gevent
|
||||||
|
zope.interface==5.1.0 # via gevent
|
||||||
|
|
||||||
|
# The following packages are considered to be unsafe in a requirements file:
|
||||||
|
# setuptools
|
||||||
|
|
Loading…
Reference in a new issue