diff --git a/PythonServer/pos-python-server.py b/PythonServer/pos-python-server.py index 52e6ce965b0f988fd940d3e1cabb4cd3c4de9669..bc4888bde42fe96fd3958b5d7f654f3ce0724475 100755 --- a/PythonServer/pos-python-server.py +++ b/PythonServer/pos-python-server.py @@ -19,7 +19,7 @@ cf = ChannelFinderClient(BaseURL=CHANNEL_FINDER) app = FastAPI() -executor = ThreadPoolExecutor(max_workers=10) +executor = ThreadPoolExecutor(max_workers=1000) @app.get("/-/health") @@ -178,4 +178,11 @@ async def search_cf(searchlist: str, output: str): if __name__ == "__main__": - uvicorn.run(app, host="0.0.0.0", port=PORT_NUMBER) + uvicorn.run( + app, + host="0.0.0.0", + port=PORT_NUMBER, + timeout_keep_alive=60, + limit_max_requests=10000, + limit_concurrency=1000, + )