forked from aws-samples/eb-locustio-sample
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocustfile.py
46 lines (37 loc) · 968 Bytes
/
locustfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
from locust import HttpLocust
from locustfiles.common.dsslocust import DSSLocust
from locustfiles import UploadTaskSet, NotifyTaskSet, SearchTaskSet, DownloadFixedTaskSet, CheckoutFixedTaskSet
HOST = os.getenv('TARGET_URL', "http://localhost")
# class UploadUser(DSSLocust):
# min_wait = 1000
# max_wait = 3000
# task_set = UploadTaskSet
# weight = 1
# host = HOST
class CheckoutUser(DSSLocust):
min_wait = 3000
max_wait = 3000
task_set = CheckoutFixedTaskSet
weight = 3
host = HOST
class DownloadUser(DSSLocust):
min_wait = 500
max_wait = 1000
task_set = DownloadFixedTaskSet
weight = 3
host = HOST
# class NotifiedUser(DSSLocust):
# min_wait = 1000
# max_wait = 3000
# task_set = NotifyTaskSet
# weight = 2
# host = HOST
#
#
# class SearchUser(HttpLocust):
# min_wait = 1000
# max_wait = 2000
# task_set = SearchTaskSet
# weight = 4
# host = HOST