lahiruW
lahiruW

Reputation: 39

is Gatling multiple protocol execution possible

There's a requirement to execute two Gatling scenarios in two protocols. For an example I need to send some Kafka events to two separate Kafka topics. since the Kafka topic is sets to protocol level I need to use two protocols with parallel execution. Does anyone know whether its possible or not. I'm expecting like below.

 setUp(
scn
  .inject(rampUsersPerSec(1).to(60).during(10 minutes),
    constantUsersPerSec(60).during(60 minutes),
    rampUsersPerSec(60).to(1).during(10 minutes))
.protocols(kafkaConfTopic_1),
scn2
  .inject(rampUsersPerSec(1).to(60).during(10 minutes),
    constantUsersPerSec(60).during(60 minutes),
    rampUsersPerSec(60).to(1).during(10 minutes))
.protocols(kafkaConfTopic_2))

Upvotes: 0

Views: 330

Answers (1)

Stéphane LANDELLE
Stéphane LANDELLE

Reputation: 6608

Well, yes. That's exactly what's in the documentation: https://docs.gatling.io/reference/script/core/simulation/#protocols-configuration

Upvotes: 1

Related Questions