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

Introduce LOCUST_SPAWN_AT_LEAST_ONE_USER_OF_EACH_USER_CLASS #1807

Conversation

mboutet
Copy link
Contributor

@mboutet mboutet commented Jul 6, 2021

This boolean environment variable allows to change the behaviour of the users distribution. If true, it behaves as before by attempting to spawn at least one user of each class when the user count >= to the number of user classes.

If false, the real distribution is calculated, meaning that users with small weights won't always be spawned when a lower user count is set.

The test helper patch_env has been relocated in test/util.py.

Based on the conversion with "voyager" on Slack.

mboutet added 2 commits July 6, 2021 10:28
This boolean environment variable allows to change the behaviour of the users distribution. If `true`, it behaves as before by attempting to spawn at least one user of each class when the user count >= to the number of user classes.

If `false`, the real distribution is calculated, meaning that users with small weights won't always be spawned when a lower user count is set.

The test helper `patch_env` has been relocated in `test/util.py`.
@mboutet
Copy link
Contributor Author

mboutet commented Jul 23, 2021

Closing because no longer applicable as of #1809 because the distribution is handled by the roundrobin library.

@mboutet mboutet closed this Jul 23, 2021
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

Successfully merging this pull request may close these issues.

1 participant