Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us at Qlik Connect 2026 in Orlando, April 13–15: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
gseckin
Contributor III
Contributor III

Retry Pushing Data To Kafka for spesific Errors

Hi,

We are using Kafka as a target and sometimes Kafka throws timeout errors and policy violation errors (when Kafka cannot handle the load), when this happens Qlik failed to deliver the message. Is there a way to retry sending the message to Kafka when Qlik receives an error from Kafka?

gseckin_0-1728379025938.png

 

Labels (1)
6 Replies
john_wang
Support
Support

Hello @gseckin ,

Thanks for reaching out to Qlik Community!

Would you please try to add an internal parameter rdkafkaTopicProperties to the Kafka target endpoint, and set its values to:

request.timeout.ms=240000;message.timeout.ms=1200000;

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
gseckin
Contributor III
Contributor III
Author

Thanks I'll try and can we also define kafka max throughput espacially for full loads kafka can not handle the load so we need to decrease max throughput for kafka

gseckin
Contributor III
Contributor III
Author

Hi @john_wang,

is there also retry mechanism for kafka that we can use for spesific errors?

john_wang
Support
Support

Hi @gseckin ,

In the error handling, the retry can be customized, for example:

john_wang_0-1728535441911.png

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
gseckin
Contributor III
Contributor III
Author

Hi @john_wang ,

thanks! And what about setting max throughput for Kafka? Can we control the max amount of data per min or sec that qlik pushes to Kafka?

Thanks

john_wang
Support
Support

Hello @gseckin ,

No such setting in Qlik Replicate Kafka endpoint. However there are other options out of Qlik Replicate:

1. Producer-Side Configurations:

  • linger.ms: This controls the time the producer waits for more records before sending a batch. Increasing it can reduce the throughput but increase batching efficiency.
  • batch.size: This controls the maximum size of a batch that can be sent. Reducing the batch size limits the throughput.

2. Broker-Side Configurations:

  • quota.producer.default: Kafka has a built-in quota mechanism for throttling producers. This allows you to set throughput limits on a per-client or per-IP basis.

3. Throttling Network Bandwidth:

If the network between your producers and Kafka broker is the bottleneck, you can throttle network bandwidth at the OS level using tools like tc on Linux.

By combining producer throttling, broker quotas, and potentially network-level restrictions, you can efficiently limit Kafka's throughput to meet your requirements.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!