Fix random cust id generation to reduce collisions

The current range causes lots of collisions and the application doesn't handle them gracefully, causing lots of exceptions to get logged and hamerring performance.

Use 100,000 like the JMeter test, see https://github.com/slandelle/tutorials/blob/master/testing-modules/load-testing-comparison/src/main/resources/scripts/JMeter/Test%20Plan.jmx#L203
This commit is contained in:
Stephane Landelle 2020-09-06 23:32:19 +02:00
parent eed6c93543
commit bbdce526c7
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import scala.concurrent.duration._
class RewardsScenario extends Simulation {
def randCustId() = Random.nextInt(99)
def randCustId() = Random.nextInt(100000)
val httpProtocol = http.baseUrl("http://localhost:8080")
.acceptHeader("text/html,application/json;q=0.9,*/*;q=0.8")