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

Incremental type in manual_load #32

Closed
danivela opened this issue Dec 3, 2021 · 3 comments
Closed

Incremental type in manual_load #32

danivela opened this issue Dec 3, 2021 · 3 comments

Comments

@danivela
Copy link

danivela commented Dec 3, 2021

Hi all,

First of all, thank you for this useful load testing tool. since its usage is decreasing the testing time in my project.
On the other hand, I have a question related to the tool usage: ¿Is it possible to launch a load test in manual mode but with the incremental or waved type?.
For now, I can specify a single load test with the three variants or a manual test with a different number of requests or duration. In this way, I would plot four different kinds of graphics: (1) Linear (2) Incremental (3) Waved (as is shown in the README.md) or (4) piecewise function (every stage of the function corresponds with a line in the manual_load JSON field).
What I wanted to know is if I could create a request/seconds graphic with different forms. For example, the first step is a lineal load with X request during Y seconds and the second step is a waved load with J request in K seconds.
I want something just like this:
"manual_load": [ {"duration": Y, "count": X, "load_type": "linear"}, {"duration": K, "count": J, "load_type": "incremental"} ],

Thank you once again.
Best regards,
Daniel.

@kursataktas
Copy link
Member

kursataktas commented Dec 3, 2021

Hi @danivela

I'm glad to hear that Ddosify helps to reduce your testing time.

The actual purpose of the Manual Load is to let the users create their own load type instead of using predefined load types (linear, incremental, and waved). There is no built-in support to indicate the type of the load in manual load types stages. All stages in manual load type is using linear load type. So you can easily simulate any load strategies. For example, let's say you want an incremental load type in the first 5 seconds for 150 requests.

Instead of this;

{
  "manual_load": [
    {
      "duration": 5,
      "count": 150,
      "load_type": "incremental"
    }
  ]
}

You can use this;

{
  "manual_load": [
    {
      "duration": 1,
      "count": 10
    },
    {
      "duration": 1,
      "count": 20
    },
    {
      "duration": 1,
      "count": 30
    },
    {
      "duration": 1,
      "count": 40
    },
    {
      "duration": 1,
      "count": 50
    }
  ]
}

The second one is longer than the first one. But it is more flexible for creating custom load types. Also, you can make it smaller by increasing the duration of the stages.

Please, let me know if this solution is enough for your requirements or not.

@kursataktas
Copy link
Member

I'm closing this issue. Let me know if you need further help.

@danivela
Copy link
Author

danivela commented Dec 13, 2021 via email

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