Hello,
We are doing a load test on the distributed system using Gatling.
We send a request to Rest endpoint, which sends a bunch of messages to Kafka Topic for the consumers to process it.
One approach we are doing is to send 1000 request to the endpoint and want to check the Kafka Consumer lag using custom code, once all the messages are processed i.e lag is 0 will end the simulation.
My test is able to measure the throughput I computed with my version of a kafka lag monitor to the console. I don’t write it to the actual gatling report. I don’t think that the DataWriter.dispatch from the example works with 2.3. Not sure the that sort of thing is even supported in free Gatling.
There’s a community (eg unsupported) plugin for Kafka: https://gatling.io/docs/current/extensions/
No idea what it’s worth or it’s actually maintained.
We’re considering having one for FrontLine.
Ankita,
We use the KafkaConsumer to check lag on all the partitions every 5s. When lag drops to zero, we report the throughput via console logs. I do not post this result to the Gatling report.
Hope this helps,
-CH