artillery-engine-kafka
kafka-engine plugin for artillery
Last updated a year ago by flentini .
MPL-2.0 · Original npm · Tarball · package.json
$ cnpm install artillery-engine-kafka 
SYNC missed versions from official npm registry.

Artillery.io Kafka Plugin

Load Test Kafka with Artillery

Based on the artillery-engine-kinesis plugin

This is a work-in-progress

Usage

Install the plugin

# If Artillery is installed globally:
npm install -g artillery-engine-kafka

Define a scenario

config:
  target: "kafka_topic"
  kafka:
    client:
      kafkaHost: "localhost:9092"
  phases:
    - duration: 10
      arrivalRate: 5
  engines:
    kafka: {}

scenarios:
  - name: "Send message to cluster"
    engine: kafka
    flow:
      - publishMessage:
          # destination topic, required
          topic: "myTestTopic"
          # size of the batch, default 1
          batch: 10
          # size of the message in bytes, default 300.
          # Ignored if data is defined
          size: 500
          # message payload, takes precedence over size parameter
          # it can be an object or a string
          data:
            name: "Mr Charles J. Message"
            location: "London, UK"

Run the scenario

artillery run my-scenario.yml

Current Tags

  • 1.0.0                                ...           latest (a year ago)

1 Versions

  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |