It's important to keep in mind that running tests is not cheap. They require a great machine with high network throughput, lots of CPUs for multi-threadeding and 1-5 MB of memory per VU that you can keep at about 80% use. With that in mind you should prioritize which tests are more important for you current situation.
-
For a Smoke Test the per-vu-iterations executor works best. You can set the number of
vusto something like 3 but not more than 5. Only 1 VU is already a smoke test. You can setiterationsfor 1, making each VU make only one iteration. Set yourmaxDurationto something like10sor15sor depending on the number of requests and average latency. Something similar can be achieved with shared-iterations if you keep the same number ofvusanditerations. -
The average Load test is the most complex because it depends on how your system is used. You probably should be using one of the open model executors, constant-arrival-rate or ramping-arrival-rate, since your users don't care how many users the system is currently serving, they just want to use your system.
-
In the Spike test the executor will be ramping-vus with the a high
targetand lowdurationfor each stage. -
In the Breakpoint test we will also be using ramping-vus, but with a high
targetand longdurationso you can clearly see where the system breaks. -
In the Soak test, constant-vus with the maximum viable
duration.