Skip to content

smf: Set clickhouse log level to 'information'#10484

Open
wfchandler wants to merge 1 commit into
mainfrom
wc/clickhouse-log-level
Open

smf: Set clickhouse log level to 'information'#10484
wfchandler wants to merge 1 commit into
mainfrom
wc/clickhouse-log-level

Conversation

@wfchandler
Copy link
Copy Markdown
Contributor

The default clickhouse log level is trace, which is exceptionally verbose.

Set the log level to information to cut down on the amount of disk and CPU we're spending on logs.

Closes #7946

The default clickhouse log level is `trace`, which is exceptionally
verbose.

Set the log level to `information` to cut down on the amount of disk and
CPU we're spending on logs.
@wfchandler
Copy link
Copy Markdown
Contributor Author

@wfchandler wfchandler requested a review from bnaecker May 22, 2026 18:55
Copy link
Copy Markdown
Collaborator

@bnaecker bnaecker left a comment

Choose a reason for hiding this comment

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

THANK YOU

The main, and blocking, comment is below.

One more vague one is that we might want a knob to change this on demand, something like the retention-policy we added recently. ClickHouse watches its config files for changes and reloads it, so we could in theory add an API to the admin server which tweaks this on demand.

I don't know if we need to do that now. It's a lot more work. But if we don't, please file an issue, because I imagine that we might need it, especially when we get back to rolling out the replicated deployments.

Comment thread smf/clickhouse/config.xml
<clickhouse>
<logger>
<level>trace</level>
<level>information</level>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we need to change this a few places, which is very annoying. This one file here is only for the single-node case, and possibly only in development setups. The clickhouse-admin crates include code for emitting the entire config XML file for the servers they start. So we need to change it:

  • Here
  • the equivalent replicated XML file
  • replicated admin server config generation
  • single-node admin server config generation

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce ClickHouse log level

2 participants