Add "step-down" capabilities
See original GitHub issueDescription of issue / feature request
Provide an optional configuration option to “step-down” the # of concurrent users based on some supplied rate, and after a defined amount of time after all locust users are hatched. Locust would continue to log the request data and statistics until there are 0 locust users by default.
Gherkin-style User Story (Perspective: Locust test-writer)
Feature: Step-down Capabilities As a user, I want to specify an
expiration rate
andduration
, so that I can verify that hatched locust users are properly expired.
Scenario: Expiration Rate defined Given I start a standard
locust
execution And I supply a validexpiration rate
And I supply a validduration
When I start the Locust swarm And the number of concurrent locust users reaches the defined maximum And the swarm has maintained the maximum number of locust users forduration
seconds Then locust users expire as defined by theexpiration rate
And Locust continues to log data until reaching 0
Scenario: Expiration Rate not defined Given I start a standard
locust
execution And I supply a validduration
When I start the Locust swarm And the number of concurrent locust users reaches the defined maximum And the swarm has maintained the maximum number of locust users forduration
seconds Then locust users expire as defined by thehatch rate
And Locust continues to log data until reaching 0
Scenario: Duration not defined Given I start a standard
locust
execution And I supply a validexpiration rate
When I start the Locust swarm And the number of concurrent locust users reaches the defined maximum And I click theStop
button Then locust users expire as defined by theexpiration rate
And Locust continues to log data until reaching 0
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
That’s true. If and when we implement support for steps in the ramping up of locust users (or more general scenarios), we should also make sure that it also supports stepping down. There is an open issues for this at #1001.
@micsjo That would be a separate feature which would build upon the functionality that this feature would offer.