cloud-bulldozer / ocm-api-load

A set of load tests for OCM's clusters-service, based on vegeta.
Apache License 2.0
1 stars 8 forks source link

Ramp up #49

Closed chentex closed 2 years ago

chentex commented 3 years ago

Description

Adding ramp up functionality to the suite.

Each individual test can be provided with the following parameters:

The test will run # with a running time of / rounded, as each step finishes it will increase the rate according to a delta that is calculated with the parameters:

For a linear ramp it will use this formula

delta = ( end-rate - start-rate ) / ( steps - 1 )

steps, has always have to be greater than 1

So the new rate will be:

newRate = oldRate + delta

For an exponential distribution:

We are using the exponential formula f(t)=start-rate * <coeff> ^ t

the coeff is calculated with this formula

coeff = (end-rate / start-rate) ^ (1 / steps)

So the new rate will be:

newRate = start-rate * coeff ^ <# of step>

Tasks

dry923 commented 2 years ago

@chentex Not sure if this functionality is in there (still walking through the code) but can it/it might be useful if it could have a ramp up time and a test time. So it can ramp up for 30 minutes but the entire test will run for 60.

chentex commented 2 years ago

So @dry923 if I get you right you wan t something like this:

And this will run a normal test with a normal rate or the start-rate for 30 min and then ramp up for 30 min, that it's the remaining of the duration.

troy0820 commented 2 years ago

LGTM but can we squash these commits? NICE Work @chentex !!!! 🎉