New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClickHouse Kafka Performance Issue #2169
Comments
Hi @ennio1991. I'm too use Kafka Engine with MergeTree Engine in topic with a lot of messages per second, 10-20k, in real-time. But have a lot of variables to get real-time performance. Some questions: What hardware with ClickHouse Server? What is the MergeTree and Kafka Engine table struct? How many partitions your Kafka Topic has? |
@ennio1991 in your case the problem is that the event rate is low, so you have to adjust the settings accordingly to get lower latency. The |
Hi @vavrusa I didn't find any info about the SETTINGS syntax, can you give me more info?
Something like this is not working |
@javisantana Here the structure:
I have a topic with 3 partitions |
@vavrusa any news? |
It's probably not supported by the SQL parser for anything else than MergeTree. You can configure it for the default user profile in users.xml like:
I'm not sure how is the time limit applied in the Union stream pulling data from RowInputStream, but I suspect it only checks the time limit after a full block is pulled, cc @proller |
Hi @vavrusa, thanks!! in this way it works, but in this way, this configuration is applied to all the tables.. |
Added per-table setting in #3396 |
Following the example from the documentation: https://clickhouse.yandex/docs/en/table_engines/kafka/
I created a table with Kafka Engine and a materialized view that pushes data to a MergeTree table.
In the Kafka topic I am getting around 150 messages per second.
Everything is fine, a part that the data are updated in the table with a big delay, definitely not in real time.
Seems that the data are sent from Kafka to the table only when I reach 65536 new messages ready to consume in Kafka
Should I set some particular configuration?
I tried to change the configurations from the cli:
But there was no improvement
Should I change any particular configuration?
Should I have changed the above configurations before to create the tables?
The text was updated successfully, but these errors were encountered: