rancher / dartboard

Code, instructions and results for scalability and performance tests on the Rancher product family
BSD 3-Clause "New" or "Revised" License
3 stars 6 forks source link

k6/change_config_maps: fix rate #10

Closed moio closed 2 months ago

moio commented 2 months ago

Previous code had several issues that resulted in the change rate not being correct:

  1. the RATE parameter was not actually read from environment variables 🤦 🤦 🤦
  2. it did not take into account that every k6 iteration we are doing two operations (one creation and one deletion)
  3. it did not use the constant-arrival-rate executor, which meant the rate was not actually guaranteed by k6 🤦
  4. creation might have caused unintended retries, which would skew the rate

This PR addresses all of the above.