Odoo Experience 2019
How to Profile Live Production
Developer
Luogo: Aula Magna / Foyer Royal - 03/10/19, 15:00 - 03/10/19, 15:20 (Europe/Brussels) (20 minuti)
How to Profile Live Production
Moisés Augusto López Calderón
Director a Vauxoo S.A. de C.V.
Moisés Augusto López Calderón
Director a Vauxoo S.A. de C.V.

Odoo developer from TinyERP 4.2 CTO of Vauxoo Gold Partner


Running profiling from live production without reboot service for any version of Odoo. 

There are a lot of performance issues related to the environment. If you start checking what is wrong using a test environment, you can not reproduce it even if you are using the exact environment. Using tools where you can check a performance issue from a live production is a great way to check it. It is important to avoid rebooting the Odoo service since it is used live. 

Other kinds of tools require a reboot, and they work using just one worker like cProfiling, line-profiler, where a change in the code to enable is required and a monkey patch to Odoo is needed to make it compatible. 

You will learn how to enable profiling for more than one worker. The tools used are:  pyflame, postgres log and pgbadger All can be started without modifying code, so without rebooting Odoo service.