Move logging to a separate thread#80125
Conversation
1950100 to
dd0af56
Compare
43d6606 to
3aae854
Compare
|
Some notes about the PR after talking with @antonio2368:
|
97bd60d
|
Here are some more numbers for
|
|
Also need to add |
|
Also, it may cause deadlock on shutdown I will disable the async for now - #82034 |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Make logging asynchronous by default. You can disable this by setting
<async>false</async>under<logger>This is a simpler alternative to #77107. It uses a queue and a thread per channel, removing the load from query execution threads.
Tested config:
clickhouse benchmark --port 49000 --query "SELECT COUNT(*) FROM hits WHERE AdvEngineID <> 0;" -i 4000clickhouse benchmark --port 49000 --query "SELECT COUNT(*) FROM hits" -i 10000