Questions regarding number of rdkafka threads #4151
mohitreddy1996
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a rust application running which makes use of https://github.com/fede1024/rust-rdkafka. We started noticing unusual number of process threads and started looking into them.
Background:
Rust application creates an "AdminClient" which is a producer underneath (?) and holds for its lifetime. It then creates a consumer for each partition of
topic_1
(by default we have 32 partitions for each topic) andtopic_2
. Creates producers for each partition of topictopic_3
andtopic_4
and keeps them for its lifetime. We have a 4 broker setup.Logged into the machine, did -
Got the output -
From, https://github.com/confluentinc/librdkafka/wiki/FAQ#number-of-internal-threads, 129 makes sense (4 brokers x 32 producers and consumer + 1 admin client). 64 producer is something which I am yet to debug (may be this is coming from Rust client?).
257 rdk:broker-1 is something which is not clear yet. AFAIU, from #3343 (comment), this corresponds to bootstrap server, but I don't understand how could there be 257 threads for 129 clients?
Beta Was this translation helpful? Give feedback.
All reactions