Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Apache Kafka use open file descriptors?

Tags:

apache-kafka

I wanted to know how does Kafka use open file descriptors. Why is it recommended to have a large number of open file descriptor. Does it impact Producer and Consumer throughput.

like image 698
guru107 Avatar asked Sep 12 '25 01:09

guru107


1 Answers

Brokers create and maintain file handles for each log segment files and network connections. The total number could be very huge if the broker hosts many partitions and partition has many log segment files. This applies for the network connection as well.

I don't immediately see any possible performance declines caused by setting a large file-max, but the page cache miss matters.

like image 121
amethystic Avatar answered Sep 15 '25 00:09

amethystic