apache kafka - Gatling test forever using feed -
i have kafka simulation test using gatling , able run constantuserspersec given duration. wanted run simulation @ constantuserspersec (say 1000/sec) , test should running forever until kills test/process.
currently have adjusted use days in place of duration. there option run test forever uses feeder. here code snippet:
val scn = scenario("kafka test demo") .feed(ssv(conf.getstring("filename"), true).circular) .exec(kafka("request") // message send .send[string]("${t}")) setup( scn.inject(constantuserspersec(conf.getint("constantuserspersec")) during (conf.getint("run_duration_in_mins") hours))) .protocols(kafkaconf)
any suggestions/directions please?
many thanks, mpha
is code bellow going work?
val scn = scenario("kafka test demo") .feed(ssv(conf.getstring("filename"), true)).circular.forever() { exec(kafka("request") // message send .send[string]("${t}")) }
Comments
Post a Comment