benchmark-consumer
Command Info
This tool is used to run a Kafka Consumer Benchmark. For more information on benchmarking see Benchmark.
Command Usage
Usage of benchmark-consumer:
-bootstrap-host string
kafka bootstrap host (default "localhost")
-bootstrap-port int
kafka bootstrap port (default 9092)
-client-id string
client-id to pass along to kafka (default "warpstream-cli")
-consumer-group string
the consumer group to use to consume, if unset (default) no consumer group is used
-enable-tls
dial with TLS or not
-fetch-max-bytes int
the maximum amount of bytes a broker will try to send during a fetch, this corresponds to the java fetch.max.bytes setting (default 50000000)
-fetch-max-partition-bytes int
the maximum amount of bytes that will be consumed for a single partition in a fetch request, this corresponds to the java max.partition.fetch.bytes setting (default 25000000)
-from-beginning
start with the earliest message present in the topic partition rather than the latest message, when enabled e2e latency can't be calculated
-kafka-log-level string
the log level to set on the kafka client, accepted values are DEBUG, INFO, WARN, ERROR (default "WARN")
-num-clients int
number of kafka clients (default 3)
-prometheus-port int
the port to serve promethes metrics on, -1 to disable (default 8082)
-sasl-password string
password for SASL authentication
-sasl-scram
uses sasl scram authentication (sasl plain by default)
-sasl-username string
username for SASL authentication
-tls-client-cert-file string
path to the X.509 certificate file in PEM format for the client
-tls-client-key-file string
path to the X.509 private key file in PEM format for the client
-tls-server-ca-cert-file string
path to the X.509 certificate file in PEM format for the server certificate authority. If not specified, the host's root certificate pool will be used for server certificate verification.
-topic string
the topic to consume fromExample
This is an example of running the consumer benchmark tool against a local playground WarpStream Cluster with a single client.
The consumer is consuming data in real-time that is being produced from the producer benchmark tool.
Last updated
Was this helpful?