Got it

A Large Amount of Metadata Is Written Back on the C++ Client, Causing Production Performance to Deteriorate

90 0 0 0 0

Hello, everyone! 

I will share with you how to deal with the problem of production performance to deteriorate when using Kafka.

Symptom

After the open source Kafka client librdkafka of C++ is used, the production performance is low. After the iftop test tool is used, a large amount of metadata is written back.

1_en-us_image_0231806828.png

Cause Analysis

By default, the Kafka client of the C++ version returns the metadata of all topics in the cluster to the producer. If the number of topics in the cluster is large and the bandwidth is insufficient, this problem occurs.

Solution

The official reply is as follows:

1_en-us_image_0231806829.png

On the producer and consumer, set topic.metadata.refresh.sparse to true to ensure that only the required topic information is retained for each writeback. In addition, reduce the frequency of obtaining metadata

by increasing the value of topic.metadata.refresh.interval.ms.


We warmly welcome you to enjoy our community!

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.