Compare commits

...

1 Commits

Author SHA1 Message Date
Denis Vermylen
7d43958d7b [IMP] odoo_sh: FAQ more workers 2024-01-25 18:50:31 +01:00
2 changed files with 23 additions and 0 deletions

View File

@@ -29,3 +29,24 @@ We advise that:
- Your scheduled actions should be
`idempotent <https://stackoverflow.com/a/1077421/3332416>`_: they must not
cause side-effects if they are started more often than expected.
How do I know if I need more workers ?
--------------------------------------
Workers are abstract units of resources allocated to your database. The more workers you have the more it can be accessed concurrently.
As a general rule of thumb, you should allocate about **1 worker per 25 users and 1 worker for every 5000 daily visitors**. However, this can vary considerably based on database usage, website characteristics, and code customizations.
Speed is only impacted if you have too much concurrency.
If things are getting slow, here are a couple of indications to tell if it's due to a high concurrency.
- When things gets slow, **everything is slowed down**, not just specific operations.
- **The slowness comes and goes**, typically it's better outside of business hours. (There can be other reasons for this as well.)
- :ref:`Open your monitoring <odoosh-gettingstarted-branches-tabs-monitoring>`, there is a graph indicating the number of **"concurrent requests (max)"**. This graphs is often high or shows a flat upper bound during a prolonged period of time.
- Some requests get a **"429 Too Many Requests"** response code.
If you have these symptoms it's advisable to try increasing your workers.
.. warning::
Sometimes this high concurrency is temporary or illegitimate, it's possible your website is being crawled or that you have misconfigured third party applications excessively sollicitating your database. To identify this, have a look at the IP adresses in your odoo logs to see if some are flooding.

View File

@@ -208,6 +208,8 @@ You can also open terminals, Python consoles and even Odoo Shell consoles.
You can open multiple tabs and drag-and-drop them to arrange the layout as you wish,
for instance side by side.
.. _odoosh-gettingstarted-branches-tabs-monitoring:
Monitoring
----------