These are the settings you need to configure if you want to get the best performance out of your Kafka producer.
You can start by editing the producer.properties
file in the config
folder of your Kafka installation. This is another key value pair file which you can open to edit in your favorite text editor.
Proceed with the following steps to configure the thread and performance for producer:
You can set the
producer.type
value:producer.type=sync
Set the
serializer.class
value:serializer.class=kafka.serializer.DefaultEncoder
Set the
key.serializer.class
value:key.serializer.class=kafka.serializer.DefaultEncoder
Set the
partitioner.class
value:partitioner.class=kafka.producer.DefaultPartitioner
Set the
compression.codec
value:compression.codec=none
Set the
compressed.topics
value:compressed.topics=mytesttopicl
Set the
message.send.max.retries
value:message.send.max.retries=3
Set the
retry.backoff.ms
value...