locust-cloud 1.5.2__py3-none-any.whl → 1.5.3__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_cloud/cloud.py +6 -1
- locust_cloud/webui/dist/assets/{index-B-CH83Zq.js → index-BeDy6pr-.js} +81 -81
- locust_cloud/webui/dist/index.html +1 -1
- {locust_cloud-1.5.2.dist-info → locust_cloud-1.5.3.dist-info}/METADATA +1 -1
- {locust_cloud-1.5.2.dist-info → locust_cloud-1.5.3.dist-info}/RECORD +7 -7
- {locust_cloud-1.5.2.dist-info → locust_cloud-1.5.3.dist-info}/WHEEL +0 -0
- {locust_cloud-1.5.2.dist-info → locust_cloud-1.5.3.dist-info}/entry_points.txt +0 -0
locust_cloud/cloud.py
CHANGED
@@ -202,7 +202,12 @@ def main() -> None:
|
|
202
202
|
s3_bucket = f"{options.kube_cluster_name}-{options.kube_namespace}"
|
203
203
|
deployed_pods: list[Any] = []
|
204
204
|
worker_count: int = max(options.workers or math.ceil(options.users / USERS_PER_WORKER), 2)
|
205
|
-
|
205
|
+
if options.users > 10000:
|
206
|
+
logger.error("You asked for more than 10000 Users, that isn't allowed.")
|
207
|
+
sys.exit(1)
|
208
|
+
if worker_count > 20:
|
209
|
+
logger.error("You asked for more than 20 workers, that isn't allowed.")
|
210
|
+
sys.exit(1)
|
206
211
|
try:
|
207
212
|
if not (
|
208
213
|
(options.username and options.password) or (options.aws_access_key_id and options.aws_secret_access_key)
|