Arrival Phases

Learn how to specify the number of clients StormForge Performance Testing should launch

StormForge Performance Testing uses an open workload model in which clients are spawned at a defined rate. Arrival Phases are used to specify the rate at which clients are spawned, controlling the load progression of your test. They will determine how many clients will arrive at your targets during the test. You need at least one, but you can have as many phases as you wish.

Each phase has a duration (in seconds) and a rate (new clients per second). Additionally you can specify how many clients are allowed to launch during this phase using max_clients and give it a name with the name attribute. Note that the max_clients parameter specifies a limit on how many clients may be launched, not a target for the desired number of clients to launch. Note also that the max_clients setting can be used to mimick a closed workload model (footnote 1) in situations where that is desireable. The name is shown during the test-execution and can be used to describe the load, e.g. “100% base load” or “expected blackfriday traffic”.

definition.setArrivalPhases([
  {
    duration: 5 * 60,  // duration in seconds
    rate: 10,          // clients to launch per second
    max_clients: 100,  // optional: launch up to 100 clients in this phase
    name: "Warmup",    // optional: descriptive name for this phase (up to 32 characters)
  },
]);

Each started client will pick one defined session and execute it, before it ends. See session likelihood for how to define this.

Note that the rate defined for a given arrival phase does not represent a constant, fixed rate or interval between client launches. The interval between client launches is drawn from an exponential probability distribution with a mean equal to the specified arrival rate. Because of this, the interval between consecutive client launches may not be predictable. However, over the course of a typical test run, the measured arrival rate will very closely approach or equal the specified rate. Note that very short test cases may show more variance in measured arrival rate due to limited sampling of the probability distribution.

Last modified November 15, 2022