common/clickhousedb: set allow_suspicious_low_cardinality_types to 1

This enables use of `LowCardinality(IPv6)` since exporter IP addresses
are really of low cardinality. ClickHouse is fixed (23.3.8.31-lts for
example).
This commit is contained in:
Vincent Bernat
2023-05-03 16:09:01 +02:00
parent a0cc8377c0
commit 4a0d8afb4c
6 changed files with 11 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ jobs:
ports:
- 6379:6379
clickhouse:
image: clickhouse/clickhouse-server:22.8
image: clickhouse/clickhouse-server:23.3
ports:
- 9000:9000
env:

View File

@@ -40,7 +40,7 @@ run tests:
alias: kafka
- name: bitnami/redis:7.0
alias: redis
- name: clickhouse/clickhouse-server:22.8
- name: clickhouse/clickhouse-server:23.3
alias: clickhouse
script:
- time apk add --no-cache git make gcc musl-dev shared-mime-info npm curl

View File

@@ -48,6 +48,9 @@ func New(r *reporter.Reporter, config Configuration, dependencies Dependencies)
MaxOpenConns: config.MaxOpenConns,
MaxIdleConns: config.MaxOpenConns/2 + 1,
ConnMaxLifetime: time.Hour,
Settings: clickhouse.Settings{
"allow_suspicious_low_cardinality_types": 1,
},
ClientInfo: clickhouse.ClientInfo{
Products: []struct {
Name string

View File

@@ -26,6 +26,10 @@ identified with a specific icon:
- 🩹 *inlet*: fix Netflow processing when template is received with data
- 🩹 *console*: fix display when using “%” units and interface speed is 0
- 🌱 *build*: minimum supported Node version is now 16
- 🌱 *docker*: update ClickHouse to 23.3 (this is not mandatory)
- 🩹 *orchestrator*: create flows table with
`allow_suspicious_low_cardinality_types` to ensure we can use
`LowCardinality(IPv6)`.
## 1.8.3 - 2023-04-28

View File

@@ -31,7 +31,7 @@ services:
- 127.0.0.1:6379:6379/tcp
clickhouse:
image: clickhouse/clickhouse-server:22.8
image: clickhouse/clickhouse-server:23.3
ports:
- 127.0.0.1:8123:8123/tcp
- 127.0.0.1:9000:9000/tcp

View File

@@ -130,7 +130,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock:ro
clickhouse:
image: clickhouse/clickhouse-server:22.8
image: clickhouse/clickhouse-server:23.3
volumes:
- ./orchestrator/clickhouse/data/docker-entrypoint.sh:/docker-entrypoint-initdb.d/init-db.sh:ro
- akvorado-clickhouse:/var/lib/clickhouse