Locust Overview

{success} Locust.io is an open source load tester used to generate traffic by LoadForge. Check their site for more.


Overview

LoadForge uses customized locust.io engines to generate load from droplets. The benefit of this is that you can import your existing locustfiles, or, write new ones to run a huge variety of tests.

A "locustfile" is the description of the test to run - what URLs to hit, what data to send, what weights and priorities to give and more.


Our Default

Our default locustfile is to get the index page of the host (/) with a simulated user wait time of between 5 and 9 seconds per request.

from locust import HttpUser, task, between

class QuickstartUser(HttpUser):
    wait_time = between(5, 9)

    @task(1)
    def index_page(self):
        self.client.get("/")

For examples please see the Locust Examples section to the left.