Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to have Locust Master dynamically allocate users to slaves #787

Closed
janvisaravanan opened this issue May 8, 2018 · 1 comment
Closed

Comments

@janvisaravanan
Copy link

I am trying to load test a HTTP URL(Dynamic) using Locust.io. I already have the python scripts that will make a GET call to the URL. The challenge i am facing is, the urls and the number of users are dynamic and are read from a CSV file.

For example, Here is how the input of the load testing will look like:

Input.csv:

============

URLs No of users to simulate

URL 1 1000
URL 2 5000
URL 3 2000
URL 4 1000
Each url in the CSV is unique and the number of users to simulate change for every url. i would like to use the locust load testing in distributed mode.

For example, Locust master will read URL 1 and send it to Slave 1 to simulate 1000 users. and then pick URL2 and send it to Slave 2 to simulate 5000 users.

how do i achieve this using locust? can someone throw some light?

@aldenpeterson-wf
Copy link
Contributor

Duplicated here - https://stackoverflow.com/q/50241866/1048539 - I wrote an answer there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants