-
Notifications
You must be signed in to change notification settings - Fork 3k
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
independent LoadTestShapes for users #1583
Comments
Makes sense. If it can be done without complicating things too much, I think it is a good idea. |
@max-rocket-internet I've seen you are the one who implemented LoadTestShapes functionality, could you guide me a little in this topic? I don't have any experience with development of locust |
Hi @stanislawskwark, the |
Maybe this could be done like the TaskSet nested class or tasks class member with a (list/set/dict) of task/tasksets Something like this: class CustomShape1(LoadTestShape):
def tick(self):
pass
class CustomUser1(HttpUser):
shape = CustomShape1
class CustomUser2(HttpUser):
@shape
class CustomShape2(LoadTestShape):
def tick(self):
pass To use that design, the method |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. |
Are there any plans on this feature? I just started with locust and look for a solution to define different custom load shapes for different users. |
Describe the solution you'd like
I have a locustfile with 2 users and I would like to have independent LoadTestShapes for them.
Some examples of usage:
constant number of users A and number of users B changing over time
initially big number of users A and small number of users B, and opposite at the end of test
more types of users with independent shapes
Describe alternatives you've considered
I've been thinking about adjusting weights dynamically, but didn't really come up with any nice solution
Additional context
example of shape I would like to get:
![image](https://user-images.githubusercontent.com/46684704/95177482-84e96100-07be-11eb-8969-08126e9ad9c3.png)
The text was updated successfully, but these errors were encountered: