locust 2.32.4.dev25__py3-none-any.whl → 2.32.5__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/contrib/fasthttp.py +1 -4
- locust/main.py +3 -0
- locust/rpc/zmqrpc.py +2 -0
- locust/runners.py +2 -2
- {locust-2.32.4.dev25.dist-info → locust-2.32.5.dist-info}/METADATA +3 -2
- {locust-2.32.4.dev25.dist-info → locust-2.32.5.dist-info}/RECORD +10 -10
- {locust-2.32.4.dev25.dist-info → locust-2.32.5.dist-info}/LICENSE +0 -0
- {locust-2.32.4.dev25.dist-info → locust-2.32.5.dist-info}/WHEEL +0 -0
- {locust-2.32.4.dev25.dist-info → locust-2.32.5.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.
|
17
|
+
__version__ = "2.32.5"
|
18
18
|
version = __version__
|
19
|
-
__version_tuple__ = (2, 32,
|
19
|
+
__version_tuple__ = (2, 32, 5)
|
20
20
|
version_tuple = __version_tuple__
|
locust/contrib/fasthttp.py
CHANGED
@@ -96,10 +96,7 @@ def _construct_basic_auth_str(username, password):
|
|
96
96
|
|
97
97
|
|
98
98
|
def insecure_ssl_context_factory():
|
99
|
-
|
100
|
-
context.check_hostname = False
|
101
|
-
context.verify_mode = gevent.ssl.CERT_NONE
|
102
|
-
return context
|
99
|
+
return gevent.ssl._create_unverified_context()
|
103
100
|
|
104
101
|
|
105
102
|
class FastHttpSession:
|
locust/main.py
CHANGED
@@ -544,6 +544,9 @@ See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-numb
|
|
544
544
|
# Fire locust init event which can be used by end-users' code to run setup code that
|
545
545
|
# need access to the Environment, Runner or WebUI.
|
546
546
|
environment.events.init.fire(environment=environment, runner=runner, web_ui=web_ui)
|
547
|
+
if log.unhandled_greenlet_exception:
|
548
|
+
# treat exceptions in init handlers as fatal. They are already logged so no need to log anything more.
|
549
|
+
sys.exit(1)
|
547
550
|
|
548
551
|
if web_ui:
|
549
552
|
web_ui.start()
|
locust/rpc/zmqrpc.py
CHANGED
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
|
Metadata-Version: 2.1
|
2
2
|
Name: locust
|
3
|
-
Version: 2.32.
|
3
|
+
Version: 2.32.5
|
4
4
|
Summary: Developer-friendly load testing framework
|
5
5
|
Home-page: https://locust.io/
|
6
6
|
License: MIT
|
@@ -50,7 +50,8 @@ Description-Content-Type: text/markdown
|
|
50
50
|
|
51
51
|
# Locust
|
52
52
|
|
53
|
-
[](https://pypi.org/project/locust/)<!---->
|
53
|
+
[](https://pypi.org/project/locust/)<!---->
|
54
|
+
[](https://pepy.tech/project/locust)
|
54
55
|
[](https://github.com/locustio/locust/actions?query=workflow%3ATests)
|
55
56
|
[](https://github.com/locustio/locust/graphs/contributors)
|
56
57
|
[](https://github.com/support-ukraine/support-ukraine)
|
@@ -1,10 +1,10 @@
|
|
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=bIGgqXsQhyp8zpBcmI8_XvoFU16CHKfhofhtUyEfG1g,445
|
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
|
7
|
-
locust/contrib/fasthttp.py,sha256=
|
7
|
+
locust/contrib/fasthttp.py,sha256=ehnOrIe1U6C0gW8fRoyHv7-HSSHxfEJxKb5zHw-y1aU,28758
|
8
8
|
locust/contrib/mongodb.py,sha256=1seUYgJOaNKwybYOP9PUEVhgl8hGy-G33f8lFj3R8W8,1246
|
9
9
|
locust/contrib/postgres.py,sha256=OuMWnGYN10K65Tq2axVESEW25Y0g5gJb0rK90jkcCJg,1230
|
10
10
|
locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
|
@@ -15,12 +15,12 @@ locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
|
|
15
15
|
locust/html.py,sha256=X9N8u42aHptcQdRZ5cLrBmDuXqRW0yXH_TaWPsWfweY,3691
|
16
16
|
locust/input_events.py,sha256=ZIyePyAMuA_YFYWg18g_pE4kwuQV3RbEB250MzXRwjY,3314
|
17
17
|
locust/log.py,sha256=5E2ZUOa3V4sfCqa-470Gle1Ik9L5nxYitsjEB9tRwE0,3455
|
18
|
-
locust/main.py,sha256=
|
18
|
+
locust/main.py,sha256=8U2zaGQWvqZMufGd2eny2q8WpSaZFHUEJTqhNNRXF80,30434
|
19
19
|
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
|
-
locust/rpc/zmqrpc.py,sha256=
|
23
|
-
locust/runners.py,sha256=
|
22
|
+
locust/rpc/zmqrpc.py,sha256=tMeLQiLII8QP29lAHGZsj5Pf5FsTL-X4wM0DrtR3ALw,3214
|
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.
|
51
|
-
locust-2.32.
|
52
|
-
locust-2.32.
|
53
|
-
locust-2.32.
|
54
|
-
locust-2.32.
|
50
|
+
locust-2.32.5.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
51
|
+
locust-2.32.5.dist-info/METADATA,sha256=80LxCmF4EKgyTI_lZVO8NHMiCVbWsKPz1-K8slOIRBg,9985
|
52
|
+
locust-2.32.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
53
|
+
locust-2.32.5.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
|
54
|
+
locust-2.32.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|