Skip to content
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

Integrate no log options for Plausible Clikhouse #227

Closed
LittleBigFrog opened this issue Mar 21, 2022 · 4 comments
Closed

Integrate no log options for Plausible Clikhouse #227

LittleBigFrog opened this issue Mar 21, 2022 · 4 comments

Comments

@LittleBigFrog
Copy link

Clickhouse have performance issues on small ram machines, as described here:
plausible/analytics#301
https://theorangeone.net/posts/calming-down-clickhouse/

@RealOrangeOne allows to disable excessive logs:
https://github.com/plausible/hosting/tree/master/clickhouse

is there a way to integrate these settings?

@RealOrangeOne
Copy link

const clickhouseConfigXml = `
<yandex>
<logger>
<level>warning</level>
<console>true</console>
</logger>
<!-- Stop all the unnecessary logging -->
<query_thread_log remove="remove"/>
<query_log remove="remove"/>
<text_log remove="remove"/>
<trace_log remove="remove"/>
<metric_log remove="remove"/>
<asynchronous_metric_log remove="remove"/>
</yandex>`;
const clickhouseUserConfigXml = `
<yandex>
<profiles>
<default>
<log_queries>0</log_queries>
<log_query_threads>0</log_query_threads>
</default>
</profiles>
</yandex>`;

@andrasbacsai
Copy link
Member

These are integrated. Are you having some problem on small ram machine?

@andrasbacsai
Copy link
Member

Due to inactivity, I'm closing this issue. However, if the problem persists, please reopen the issue. Thanks!

@akoenig
Copy link

akoenig commented Jun 14, 2022

@andrasbacsai I can confirm high spikes in CPU utilization when it comes to the clickhouse server. I checked the /etc/clickhouse-server/config.xml within the container and can confirm that the changes above are not in there.

This is for example the CPU utilization displayed in the Coolify dashboard (the Coolify instance is not hosting anything except Plausible right now):

Screen recording 2022-06-14 19 50 58

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants