543a3ad204232cc67ae9e099f43960b664e8de19
Before this commit nothing prevented high concurrency on a threaded http server to consume too much resources, ending up failing requests either because the OS is unable to spawn that many threads (`RuntimeError: can't start new thread`), either because the Odoo db connection pool is full (`PoolError: The Connection Pool Is Full`). This commit adds the ODOO_MAX_HTTP_THREADS environment variable which allows to limit the amount of concurrent socket connections accepted by a threaded server, implicitly limiting the amount of concurrent threads running for http requests handling. Note that if a value has been provided to ODOO_MAX_HTTP_THREADS that cannot be parsed as an integer, a value will be automatically set to half the db connection pool size (which defaults to 64). This dynamic value is chosen because while most requests will borrow only one cursor concurrently, there are some exceptions where some controllers might allocate two or more cursors. closes odoo/odoo#42327 X-original-commit: d42a951369ee87b50e834f73cd2af5cf031d43f7 Signed-off-by: Christophe Simonis <chs@odoo.com>
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%