Menu
Load Testing: How to Stress Your Odoo with Locust
Developer
Địa điểm: Aula Magna / Foyer Royal - 12:30, 02/10/2019 - 12:50, 02/10/2019 (Europe/Brussels) (20 phút)
Load Testing: How to Stress Your Odoo with Locust
Michael Vannerom, Developer - Odoo
Michael Vannerom, Developer - Odoo

Deploying an Odoo instance on production could be an adventure without its challenges. 

If you want to get the maximum resources from your server, you have to adapt to different options. It is not always easy to know the number of workers and the different limits depending on them. But after you set up your server, how do you know if your theoretic value seems to be correct and when can you see the first error appear. To be sure that your system stays usable it's important to find a way to stress your Odoo instance with a different number of users.  To answer all these questions we will show you what we develop internally with Locust. 

Locust is an open-source load testing tool that allows you to send XMLRPC requests with a specific number of users. Just imagine the different scenarios you want to test, then with this library, you can write a test in Python with the lib XMLRPC. After that, you have the Locust interface just to say, "I want to test with 1,20,50, 100,... users". It will prevent wrong configurations and check how many users the system can handle while still answering requests in the correct time. You also have interesting stats per request like the number of failing requests median time, average time, min and max time for a request, and how many requests per sec Odoo can answer. With all the aforementioned statistics you will have an accurate view of the limits of your system.    

During this talk, we will see how to set up your Locust on your system, case by case. To understand how to use it in a practical case we will also show you a real-life case and how we use it internally. After this talk, attendees should feel more efficient and you will know the limit of your system.