Closed m3asmi closed 4 years ago
Sorry, this is not an Odoo issue, but a question on deployment. You should make it on Odoo official forums (https://www.odoo.com/forum/help-1) or mailing lists (https://odoo.com/groups), but not here.
Closing this by the reason above.
@pedrobaeza actually it tends to happen quite often in Odoo ;) Usually this happens if you have one cron job that cannot execute the job in time. The cron restarts and if another one is then running also you'll get a lock.
As said, a deployment question because you have one of the deployment parameters bad adjusted for that to happen.
@pedrobaeza @Yenthe666 indeed it was a programming error in a custom model in the scheduler. there they was so many connection without closing the cursor.
Even Baeza said, not my problem!! But the community still slow to solv it.
I have a odoo13 instance running on GCP with professional SQL managed by google, with lots of memory and intrastruture. But as I try to access the menu "Product", when it load the page crash my system and I have to restart odoo service.
How did you solve this? With enterprise I get these errors. Without any custom modules.
;(1 + workers + max_cron_threads) * db_maxconn < max_connections workers = 0 max_cron_threads = 2 db_maxconn = 256 max_connections = 800
With this in mind:
1 worker is about 6 concurrent users.
ie: ALL clicking a button at the "exact same time".
Up to 99% of the time users read, type or scroll and that does not count as 'using' Odoo since no server resources are consumed. Only when a User or Visitor clicks a button, runs a report, imports data, etc. are server resources consumed.
1 worker could support 50 users or 100 users, depending on the scenario. 1 worker could support 10,000 an day or 5,000 an hour, depending on the scenario.
Impacted versions: 12.0
In my postgresql log, I see following error (keeps on being logged over and over):
What is causing this error?
I have following configuration: Odoo v12.0 Ubuntu 18.04.4 LTS
Potentially relevant parts of my config file: