From b5b74b8c71b7e28df45b911fc759837bd9663235 Mon Sep 17 00:00:00 2001 From: Eugene Klimov Date: Mon, 18 Nov 2024 18:04:24 +0400 Subject: [PATCH] add low_memory.xml for less clickhouse memory usage --- docker-compose.yaml | 1 + docker/clickhouse/low_memory.xml | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 docker/clickhouse/low_memory.xml diff --git a/docker-compose.yaml b/docker-compose.yaml index 81f36ccdf..de39ef8ab 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -20,6 +20,7 @@ services: volumes: - /var/log/clickhouse-server - ./docker/clickhouse/init_schema.sql:/docker-entrypoint-initdb.d/init_schema.sql + - ./docker/clickhouse/low_memory.xml:/etc/clickhouse-server/low_memory.xml - ./docker/clickhouse/postgres_dictionary.xml:/etc/clickhouse-server/postgres_dictionary.xml - ./docker/clickhouse/listen_ports.xml:/etc/clickhouse-server/config.d/listen_ports.xml - ./docker/clickhouse/ca-key.pem:/etc/clickhouse-server/ca-key.pem diff --git a/docker/clickhouse/low_memory.xml b/docker/clickhouse/low_memory.xml new file mode 100644 index 000000000..20c73bbcc --- /dev/null +++ b/docker/clickhouse/low_memory.xml @@ -0,0 +1,34 @@ + + 2000 + + 1024 + 1073741824 + 0 + 1 + 1 + + + 268435456 + 67108864 + 16777216 + false + + 64 + 8 + 0.75 + + 1 + 2 + 2 + round_robin + 1 + 1 + 2 + 8 + 1 + 1 + 0 + 0 + + +