I’ve been looking for a good resource that gave an idea of how to create a reliable load / stress test, but I haven’t been able to find anything.
Let’s say that I want test an application that is used to sell books.
It has been proved that the day with the highest sales is Christmas Eve (December 24th) with a maximum peak of 21 sales per minute. Taking a closer look to these results, it was determined that there was a maximum peak of 2 sales per second like it’s shown in the image below.
So taking into account all the results mentioned above, this is what I've tried so far:
Load Test:
Number of threads: 2
Ramp-up period: 1 second
Loop count: forever
Duration: 3600 seconds (1 hour)
Stress Test:
Number of threads: 4 (an increase of a 100%)
Ramp-up period: 1 second
Loop count: forever
Duration: 3600 seconds (1 hour)
Now that you know what I've tried, I want to ask you some questions:
- How you create a load and stress test so that they’re reliable? Which things do you consider?
- Is it correct to increase the number of threads, but keep the ramp-up period invariable?
- Do you think it’s OK to use a duration of an hour?
- For my stress test, I increased the number of thread in a 100%, what do you think about this? Should I use a higher value or perhaps an increase of a 100% is too much?
Thanks in advance.