Odoo Experience 2018
Load Testing: How to Stress Your Odoo with Locust
Developer
위치: Aula Magna / Lauzelle - 18. 10. 4. 오후 12:30 - 18. 10. 4. 오후 12:50 (Europe/Brussels) (20분)
Load Testing: How to Stress Your Odoo with Locust
Michael Vannerom, Developer - Odoo
Michael Vannerom, Developer - Odoo

Deploying an Odoo instance on production can be an adventure without its challenges. If you want to get the maximum resources from your server, you have to adapt 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 question 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 is able to 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 request per sec Odoo is able to 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.