Skip to content

A Gatling extension for running load tests on Apache Kafka installations

Notifications You must be signed in to change notification settings

sbcd90/kafka-gatling-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kafka-gatling-extension

Gatling is an open-source load testing framework. The Kafka Gatling extension can be used for stress testing an existing Apache Kafka installation using Gatling.

Compatibility

The extension supports Apache Kafka 0.10 protocol & latest released version of Gatling 2.2.

Installation

Installation as a maven plugin

In pom.xml add,

<repository>
   <id>gatling-kafka-extension</id>
   <name>gatling-kafka-extension</name>
   <url>https://dl.bintray.com/sbcd90/io.gatling/</url>
</repository>

add the extension as a maven dependency,

<dependency>
   <groupId>io.gatling</groupId>
   <artifactId>kafka-gatling-extension</artifactId>
   <version>1.0</version>
</dependency>

Installation from source

mvn clean install -Ppackage-only

Getting started

  • Look into the file BasicSimulation.scala. Point it to the right Kafka Broker coordinates & provide the correct Kafka topic name.
  • Start the simulation using the command
mvn gatling:execute -Dgatling.simulationClass=io.gatling.simulation.BasicSimulation

Features

  • Custom avro schemas can be passed for generating records using them. Here is an example

  • An in-built Random Data Generator is provided for getting started with Load tests quickly.

  • Custom data generators can be added if necessary. Here is an example

  • Gatling feeders are supported & a custom csv file can be passed for loading data. Here is an example

About

A Gatling extension for running load tests on Apache Kafka installations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages