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

schedule_task and data driven load test methodology #633

Closed
daluu opened this issue Jul 24, 2017 · 2 comments
Closed

schedule_task and data driven load test methodology #633

daluu opened this issue Jul 24, 2017 · 2 comments

Comments

@daluu
Copy link

daluu commented Jul 24, 2017

Three things:

  1. How is TaskSet.schedule_task() generally used? It's in API doc but I don't really see any code samples of its use other than this one case in Support for scenarios #171 (comment)

  2. Similar to schedule_task, using task decorators and the other conventions, is there a way to pass arguments to any given task? So not just "self" as the sole argument.

  3. What approaches are suggested for data driven load tests or load testing at scale where the data varies as you scale up/down the load? e.g. each user/instance spawned runs with its own dataset. How to pass/provide that dataset on a per user/instance basis? Some way to provide args, add your own internal logic and get config via environment variables (or using statically defined config file name/paths)? Or adding custom kw args to locust to use with the tasks, etc. - which doesn't appear mentioned as an option, one would have to extend themselves?

For item 3, this is much easier to do in say JMeter (and I'd assume Gatling) for feeding data to each user/instance of load being generated.

@daluu
Copy link
Author

daluu commented Jul 24, 2017

Well I came across this researching use of locust more, for item 3: https://stackoverflow.com/questions/23016278/way-to-use-locust-io-by-supplying-user-list

Still those aren't necessarily optimal approaches, at least for sequential data access by say a user/hatch count.

@cyberw
Copy link
Collaborator

cyberw commented Oct 18, 2019

Closing this due to lack of activity. I hope you solved your issue, otherwise try slack!

@cyberw cyberw closed this as completed Oct 18, 2019
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