An open API service indexing awesome lists of open source software.

https://github.com/mre/kafka-benchmark

A simple kafka script for benchmarking kafka message throughput
https://github.com/mre/kafka-benchmark

kafka-benchmark

Last synced: about 2 months ago
JSON representation

A simple kafka script for benchmarking kafka message throughput

Awesome Lists containing this project

README

        

# Kafka Benchmark

A very simple benchmark script for Kafka.
This will write as many sample messages to Kafka as set in the config file.

# Usage

usage: benchmark.py [-h] -c CONFIGFILE -m MESSAGEFILE

optional arguments:
-h, --help show this help message and exit
-c CONFIGFILE, --configfile CONFIGFILE
Configuration file to use
-m MESSAGEFILE, --messagefile MESSAGEFILE
File containing sample message that will be written to
Kafka

1. Install all dependencies with `pip install -r requirements.txt`
2. Insert a sample message into `message.txt`.
3. Adjust the configuration at `config.yml`.
4. Start the benchmark with `python benchmark.py`