Skip to content

Use background thread pool for background buffer flushes#10315

Merged
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
azat:buffer-flush-bg-pool
Apr 18, 2020
Merged

Use background thread pool for background buffer flushes#10315
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
azat:buffer-flush-bg-pool

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented Apr 16, 2020

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Use background thread pool for background buffer flushes (this will allow to avoid occupation threads when there are no insert's)

Refs: #6833 (comment) (does this resolves this issue after other fixes and this one?)

P.S. I placed some code (settings and changes in context) a little bit "non grouped" to avoid conflicts with #10263

@blinkov blinkov added the pr-improvement Pull request with some product improvements label Apr 16, 2020
M(SettingBool, extremes, false, "Calculate minimums and maximums of the result columns. They can be output in JSON-formats.", IMPORTANT) \
M(SettingBool, use_uncompressed_cache, true, "Whether to use the cache of uncompressed blocks.", 0) \
M(SettingBool, replace_running_query, false, "Whether the running request should be canceled with the same id as the new one.", 0) \
M(SettingUInt64, background_buffer_flush_schedule_pool_size, 16, "Number of threads performing background flush for tables with Buffer engine. Only has meaning at server startup.", 0) \
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

Only has meaning at server startup.

I hope we will separate these kind of settings eventually.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I don't understand why they are here and not in server config (i.e. config.xml)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants