Reducing the number of partitions #1508
Unanswered
FestplattenSchnitzel
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Ah, just noticed, the number of consumers is already down to five, but of course one consumer now consumes from multiple topics. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
In the past, I've had Akvorado configured with
clickhouse.kafka.consumers: 12kafka.topic-configuration.num-partitions: 12for testing purposes, but changed both back to
5some time ago.However, running
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group clickhousestill shows 12 "active" partitions (ones with values atCURRENT-OFFSET,LOG-END-OFFSETandLAG) for one topic flows-243Q[…] and, surprising to me, six ones for another topic flows-LAAB[…] where no data seems to go through (no values forCURRENT-OFFSET,LOG-END-OFFSETandLAG) but still for each partition there is a clickhouse consumer and client connected. Any idea what's up with these?Regarding the number of partitions, there's also this log entry:
OK, a quick search reveals: reducing the number of partitions isn't supported by Kafka.
Is there some way to reduce the number of partitions (and more important the number of consumers) anyway? I wouldn't care about data loss as I have huge performance problems currently (12 clickhouse consumers on 12 CPU cores don't work out very well).
I've already tried deleting all of
/var/lib/kafkabut it didn't work.That's in advance.
Beta Was this translation helpful? Give feedback.
All reactions