Skip to content

Preventing storage to balloon #680

Discussion options

You must be logged in to vote

At least with the official Docker image, it seems that Clickhouse's query logs are stored in Clickhouse itself, not just in .log files. By running the truncate query in the linked blog post (clickhouse-client -q "SELECT name FROM system.tables WHERE name LIKE '%log%';" | xargs -I{} clickhouse-client -q "TRUNCATE TABLE system.{};"), I reduced my Clickhouse disk usage from about 26GB to 440kB (!)

I ensured that the log tables won't fill up again by using the config files in that post, too. With docker-compose that might look something like this:

  plausible_events_db:
    image: yandex/clickhouse-server:latest
    restart: always
    volumes:
      - event-data:/var/lib/clickhouse
      - .…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by metmarkosaric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants