From af196b0c99b318faa1f7b6dcecc5af6c5891d4bf Mon Sep 17 00:00:00 2001 From: ZKWolf <34097612+wolfswolke@users.noreply.github.com> Date: Tue, 4 Jun 2024 02:43:50 +0200 Subject: [PATCH] Bumped up numbers a TON, so it shouldn't run into any bottlenecks software sided --- src/start_app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/start_app.py b/src/start_app.py index d4ba826..d11ba49 100644 --- a/src/start_app.py +++ b/src/start_app.py @@ -23,7 +23,7 @@ import endpoints.matchmaking def run(): - serve(app, host='0.0.0.0', port=8080, threads=8, connection_limit=1000, cleanup_interval=30, channel_timeout=120,) + serve(app, host='0.0.0.0', port=8080, threads=100, connection_limit=2000, cleanup_interval=50, channel_timeout=190,) def keep_alive(): @@ -51,7 +51,10 @@ def keep_alive(): # main # ------------------------------------------------------- # logger.setup_graylog(use_graylog, graylog_server) -mongo.setup(mongo_host, mongo_db, mongo_collection) +if dev_env == "true": + mongo.setup(mongo_host, mongo_db_dev, mongo_collection) +else: + mongo.setup(mongo_host, mongo_db, mongo_collection) session_manager.setup() hash_handler.setup() webhook_handler.setup(steam_api_key, 555440)