kytos-ng / kytos

Kytos SDN Platform. Kytos is designed to be easy to install, use, develop and share Network Apps (NApps).
https://kytos-ng.github.io/
MIT License
3 stars 7 forks source link

Add in a config option for api threadpool size #447

Closed Ktmi closed 7 months ago

Ktmi commented 7 months ago

Closes kytos-ng/mef_eline#406

Summary

Adds in a new threadpool called api. This is used to specify the number of threads used to handle API requests concurrently by the ASGI server. Also added in the configuration option api_concurrency_limit which specifies the maximum amount of concurrent requests to accept before requests are outright rejected.

Local Tests

Raising the api threadpool size allows for handling more API requests which depend on other api requests without locking up. Locking up still a possibility, but now possible to mitigate with a larger pool size here.