How to set a maximum time for a request to come back
You can set HTTP timeouts on LoadForge by using the timeout parameter. This is useful
where you see an even increasing P95/P99 response time as requests that your
webserver fails to respond to increase in time.
The value is set in seconds, as is shown below.
from locust import HttpUser, task, between
wait_time = between(5, 9)
This guide is part of the LoadForge Directory, an index of locustfile's for use with LoadForge website and API load tests.
We also provide a wizard to generate tests, and onboarding assistance for clients. Contact us should you have any questions.
LoadForge provides load testing and stress tests for websites, APIs and servers. It uses your cloud account to rapidly scale large numbers of simulated users
to load test your website, store, API, or application for cheap - just cents per test!