Skip to Content

Contributors

Re: eCommerce checkout runs out of workers and Odoo dies

Hey Odoo Community Association (oca)!

We got your email and we are excited to be of service. We'll get back to you as soon as possible!

Take care!
{#HS:2237785746-129#}

by "Companion EDU" <support@companionedu.com> - 07:46 - 9 May 2023

Reference

  • eCommerce checkout runs out of workers and Odoo dies
    Hello,

    We stumbled into an Odoo problem, when trying to complete several eCommerce checkouts at the same time, with a low number of workers available. For example: you have two workers, and you have two or more shoppers completing their payment at the exact same time.

    We traced this to the report generation happening when closing a Sales Order, and found this relevant Issue:
    https://github.com/odoo/odoo/issues/79522

    Long story short -
    running the reports triggers Odoo requests to get the HTML assets needed,
    these triggers the need for more workers to serve the assets,
    but no more workers are available and the Odoo server dies (with an "existing gracefully" message and no further explanation!).

    The recommended solution from Odoo is to have the assets cached at the Nginx level, both for static files and for the asset bundles.
    In this case this is a K8's deployment and we're using Ingress instead of Nginx, and are working through the particular configuration needed to achieve this effect.

    I found it could be interesting to share this, and maybe get other points of view or reports from other people having faced the same problem.

    Thank you

    --
    DANIEL REIS
    MANAGING PARTNER

    M: +351 919 991 307
    E: dreis@OpenSourceIntegrators.com
    A: Avenida da República 3000, Estoril Office B, 3º Escr.34, 2649-517 Cascais


    by Daniel Reis - 07:40 - 9 May 2023