Skip to content

Excessive resource usage from clickhouse #301

@RealOrangeOne

Description

@RealOrangeOne

Bug report

Describe the bug

Clickhouse is using a crazy large amount of resources, when the plausible is getting little to no traffic.

Looking at /etc/clickhouse-server/clickhouse-server.log (crazy large file BTW), there are lots of logs stating it's querying, when nothing is happening:

<Debug> executeQuery: (from xxx.xxx.xxx.xxx:xxx) SELECT 1 FORMAT JSONCompact

These are run once every 2 seconds or so, for each connection in the pool (10 by default).

If I stop plausible, the usage goes down to nothing, so it's definitely something coming from plausible itself causing the usage, and I suspect it's these strange queries.

Expected behavior

Clickhouse only jumps up when it's doing things, and likely not to this height.

Screenshots (If applicable)

N/A

Environment (If applicable):

  • OS: Docker on Ubuntu
  • Browser: N/A
  • Version: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions