Herramientas de usuario

Herramientas del sitio


fw:locust

¡Esta es una revisión vieja del documento!


Locust

Is a load testing tool in which you define user behaviour and the system launches a lot of non-real users accessing your web page.

Basic things

Install

$ pip install locustio

Basic things in Locust

Executing Locust

In the same path than the locust file:

locust

Or in different path:

locust -f ../locust_files/my_locust_file.py

Running multiple processes

  • It's recommended to install zeromq: $ pip install pyzmq

You'll need a master:

locust -f ../locust_files/my_locust_file.py --master

And an arbitrary number of slave processes:

locust -f ../locust_files/my_locust_file.py --slave

Or with multiple machines:

locust -f ../locust_files/my_locust_file.py --slave --master-host=192.168.0.100

Accessing to the web interface

You only need to access the url: http://127.0.0.1:8089

More things...

fw/locust.1407483163.txt.gz · Última modificación: 2020/05/09 09:24 (editor externo)