locust 2.32.5.dev10__py3-none-any.whl → 2.32.5.dev14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/runners.py +2 -2
- {locust-2.32.5.dev10.dist-info → locust-2.32.5.dev14.dist-info}/METADATA +1 -1
- {locust-2.32.5.dev10.dist-info → locust-2.32.5.dev14.dist-info}/RECORD +7 -7
- {locust-2.32.5.dev10.dist-info → locust-2.32.5.dev14.dist-info}/LICENSE +0 -0
- {locust-2.32.5.dev10.dist-info → locust-2.32.5.dev14.dist-info}/WHEEL +0 -0
- {locust-2.32.5.dev10.dist-info → locust-2.32.5.dev14.dist-info}/entry_points.txt +0 -0
locust/_version.py
CHANGED
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
|
|
14
14
|
version_tuple: VERSION_TUPLE
|
15
15
|
|
16
16
|
|
17
|
-
__version__ = "2.32.5.
|
17
|
+
__version__ = "2.32.5.dev14"
|
18
18
|
version = __version__
|
19
|
-
__version_tuple__ = (2, 32, 5, "
|
19
|
+
__version_tuple__ = (2, 32, 5, "dev14")
|
20
20
|
version_tuple = __version_tuple__
|
locust/runners.py
CHANGED
@@ -52,7 +52,7 @@ STATE_INIT, STATE_SPAWNING, STATE_RUNNING, STATE_CLEANUP, STATE_STOPPING, STATE_
|
|
52
52
|
]
|
53
53
|
WORKER_REPORT_INTERVAL = 3.0
|
54
54
|
WORKER_LOG_REPORT_INTERVAL = 10
|
55
|
-
CPU_MONITOR_INTERVAL =
|
55
|
+
CPU_MONITOR_INTERVAL = 10.0
|
56
56
|
CPU_WARNING_THRESHOLD = 90
|
57
57
|
HEARTBEAT_INTERVAL = 1
|
58
58
|
HEARTBEAT_LIVENESS = 3
|
@@ -283,6 +283,7 @@ class Runner:
|
|
283
283
|
def monitor_cpu_and_memory(self) -> NoReturn:
|
284
284
|
process = psutil.Process()
|
285
285
|
while True:
|
286
|
+
gevent.sleep(CPU_MONITOR_INTERVAL)
|
286
287
|
self.current_cpu_usage = process.cpu_percent()
|
287
288
|
self.current_memory_usage = process.memory_info().rss
|
288
289
|
if self.current_cpu_usage > CPU_WARNING_THRESHOLD:
|
@@ -296,7 +297,6 @@ class Runner:
|
|
296
297
|
self.environment.events.usage_monitor.fire(
|
297
298
|
environment=self.environment, cpu_usage=self.current_cpu_usage, memory_usage=self.current_memory_usage
|
298
299
|
)
|
299
|
-
gevent.sleep(CPU_MONITOR_INTERVAL)
|
300
300
|
|
301
301
|
@abstractmethod
|
302
302
|
def start(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=Jit8eNUrwuMLqavyFvMZr69e61DILq_KB4yT4MciScw,1681
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=MSHCAQHSAutSVT33XE-mKpXVkaYPP7JEDPPsaKoedik,460
|
4
4
|
locust/argument_parser.py,sha256=xB9TQhAALeIZLx0hxoBOVv4dhSNdB15BG0fDYXkyeFc,30137
|
5
5
|
locust/clients.py,sha256=XK-xabq2_5GZKMEjebDobvEjeBTtCs8h2EelL7s68Qs,19346
|
6
6
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -20,7 +20,7 @@ locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
|
20
20
|
locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
|
21
21
|
locust/rpc/protocol.py,sha256=n-rb3GZQcAlldYDj4E4GuFGylYj_26GSS5U29meft5Y,1282
|
22
22
|
locust/rpc/zmqrpc.py,sha256=tMeLQiLII8QP29lAHGZsj5Pf5FsTL-X4wM0DrtR3ALw,3214
|
23
|
-
locust/runners.py,sha256=
|
23
|
+
locust/runners.py,sha256=300HEAH06tWd2xWYnmZZR6qvjewpXlgQV6o63ce1wj0,70611
|
24
24
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
25
25
|
locust/stats.py,sha256=Ylw-uyt3cpeqy0Oi5kvcloVWgjJm62lu9lbWJfq2lHU,46061
|
26
26
|
locust/user/__init__.py,sha256=S2yvmI_AU9kXirtTIVqiV_Hs7yXzqXvaSgkNo9ig-fk,71
|
@@ -47,8 +47,8 @@ locust/webui/dist/auth.html,sha256=JYZcdglsfY3B4LEPCteWiNd5kPX21Lx1oaaI00iCTxo,6
|
|
47
47
|
locust/webui/dist/index.html,sha256=uMAhFNZjFQrWASkqHYx0GPsGSs2DO00OrRkvWItpv38,654
|
48
48
|
locust/webui/dist/report.html,sha256=wd_TO5cREIfgk0ru49DX0Zlxopb5iWsyuB36v_rfST8,1474524
|
49
49
|
poetry.lock,sha256=a4ZAnX6LNBWBJnqtxt4gK0uPSqPsBdDitylFj1rL3LA,214415
|
50
|
-
locust-2.32.5.
|
51
|
-
locust-2.32.5.
|
52
|
-
locust-2.32.5.
|
53
|
-
locust-2.32.5.
|
54
|
-
locust-2.32.5.
|
50
|
+
locust-2.32.5.dev14.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
51
|
+
locust-2.32.5.dev14.dist-info/METADATA,sha256=YHrES647i-UuJ9NLcuEswYBQ8Ss7y_eirl-Q1rC_Rss,9991
|
52
|
+
locust-2.32.5.dev14.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
53
|
+
locust-2.32.5.dev14.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
|
54
|
+
locust-2.32.5.dev14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|