This locustfile can be used to generate many simultaneous requests that download look results from the Looker API.
- Install LocustIO
- Create a config.yml file with your API connection credentials
- From your working directory, start
locust --host=ucalgary
(the host must match the name of a node in your config.yml file)- You can also run locust distributed with multiple workers and really shake things out 💪
- Now, visit http://127.0.0.1:8089 to summon some locusts
- You can simulate hundreds of simultaneous users
- Each user will request results for random looks from your instance
- If you want to change the behaviour, modify locustfile.py
The LocustIO web interface will show you request timing statistics for each look:
As well as correlated charts for requests per second, response time, and number of users: