chore: update clickhouse version for compose files to 26.1 (#1791)

This commit is contained in:
Aaron Knudtson 2026-02-24 15:24:43 -05:00 committed by GitHub
parent 81a3259074
commit 8772f5e294
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 17 additions and 10 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---
chore: update clickhouse versions for compose files

View file

@ -23,7 +23,7 @@ services:
depends_on: depends_on:
- ch-server - ch-server
ch-server: ch-server:
image: clickhouse/clickhouse-server:25.6-alpine image: clickhouse/clickhouse-server:26.1-alpine
environment: environment:
# default settings # default settings
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1 CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1

View file

@ -85,7 +85,7 @@ services:
ch-server: ch-server:
condition: service_healthy condition: service_healthy
ch-server: ch-server:
image: clickhouse/clickhouse-server:25.7-alpine image: clickhouse/clickhouse-server:26.1-alpine
ports: ports:
- 8123:8123 # http api - 8123:8123 # http api
- 9000:9000 # native - 9000:9000 # native

View file

@ -79,7 +79,7 @@ services:
- ch-server - ch-server
- db - db
ch-server: ch-server:
image: clickhouse/clickhouse-server:25.6-alpine image: clickhouse/clickhouse-server:26.1-alpine
# WARNING: Exposing the database port will make it accessible from outside the container, # WARNING: Exposing the database port will make it accessible from outside the container,
# potentially allowing unauthorized access. If you uncomment the ports below, # potentially allowing unauthorized access. If you uncomment the ports below,
# ensure to secure your database (e.g., with strong authentication, proper network rules, and firewalls). # ensure to secure your database (e.g., with strong authentication, proper network rules, and firewalls).

View file

@ -8,7 +8,7 @@
# - Otel Collector (otelcol) # - Otel Collector (otelcol)
ARG NODE_VERSION=22.22 ARG NODE_VERSION=22.22
ARG CLICKHOUSE_VERSION=25.12 ARG CLICKHOUSE_VERSION=26.1
ARG OTEL_COLLECTOR_VERSION=0.145.0 ARG OTEL_COLLECTOR_VERSION=0.145.0
ARG OTEL_COLLECTOR_OPAMPSUPERVISOR_VERSION=0.145.0 ARG OTEL_COLLECTOR_OPAMPSUPERVISOR_VERSION=0.145.0

View file

@ -88,7 +88,7 @@
"lint:fix": "npx eslint . --ext .ts --fix", "lint:fix": "npx eslint . --ext .ts --fix",
"ci:lint": "yarn lint && yarn tsc --noEmit", "ci:lint": "yarn lint && yarn tsc --noEmit",
"ci:int": "DOTENV_CONFIG_PATH=.env.test jest --runInBand --ci --forceExit --coverage", "ci:int": "DOTENV_CONFIG_PATH=.env.test jest --runInBand --ci --forceExit --coverage",
"dev:int": "DOTENV_CONFIG_PATH=.env.test jest --watchAll --runInBand --detectOpenHandles", "dev:int": "DOTENV_CONFIG_PATH=.env.test node --inspect-brk ../../node_modules/.bin/jest --runInBand --ci --forceExit --coverage",
"dev:migrate-db-create": "ts-node node_modules/.bin/migrate-mongo create -f migrate-mongo-config.ts", "dev:migrate-db-create": "ts-node node_modules/.bin/migrate-mongo create -f migrate-mongo-config.ts",
"dev:migrate-db": "ts-node node_modules/.bin/migrate-mongo up -f migrate-mongo-config.ts", "dev:migrate-db": "ts-node node_modules/.bin/migrate-mongo up -f migrate-mongo-config.ts",
"dev:migrate-ch-create": "migrate create -ext sql -dir ./migrations/ch -seq", "dev:migrate-ch-create": "migrate create -ext sql -dir ./migrations/ch -seq",

View file

@ -108,7 +108,6 @@ const connectClickhouse = async () => {
PARTITION BY toDate(TimestampTime) PARTITION BY toDate(TimestampTime)
PRIMARY KEY (ServiceName, TimestampTime) PRIMARY KEY (ServiceName, TimestampTime)
ORDER BY (ServiceName, TimestampTime, Timestamp) ORDER BY (ServiceName, TimestampTime, Timestamp)
TTL TimestampTime + toIntervalDay(3)
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1 SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
`, `,
// Recommended for cluster usage to avoid situations // Recommended for cluster usage to avoid situations
@ -150,7 +149,6 @@ const connectClickhouse = async () => {
ENGINE = MergeTree ENGINE = MergeTree
PARTITION BY toDate(TimeUnix) PARTITION BY toDate(TimeUnix)
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix)) ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
TTL toDateTime(TimeUnix) + toIntervalDay(3)
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1 SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
`, `,
// Recommended for cluster usage to avoid situations // Recommended for cluster usage to avoid situations
@ -194,7 +192,6 @@ const connectClickhouse = async () => {
ENGINE = MergeTree ENGINE = MergeTree
PARTITION BY toDate(TimeUnix) PARTITION BY toDate(TimeUnix)
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix)) ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
TTL toDateTime(TimeUnix) + toIntervalDay(15)
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1 SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
`, `,
// Recommended for cluster usage to avoid situations // Recommended for cluster usage to avoid situations
@ -242,7 +239,6 @@ const connectClickhouse = async () => {
ENGINE = MergeTree ENGINE = MergeTree
PARTITION BY toDate(TimeUnix) PARTITION BY toDate(TimeUnix)
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix)) ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
TTL toDateTime(TimeUnix) + toIntervalDay(3)
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1 SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
`, `,
// Recommended for cluster usage to avoid situations // Recommended for cluster usage to avoid situations

View file

@ -16,7 +16,7 @@ services:
memory: 512M memory: 512M
cpus: '0.5' cpus: '0.5'
ch-server: ch-server:
image: clickhouse/clickhouse-server:25.6-alpine image: clickhouse/clickhouse-server:26.1-alpine
ports: ports:
- 8123:8123 # http api - 8123:8123 # http api
- 9000:9000 # native - 9000:9000 # native

View file

@ -443,6 +443,7 @@ describe('processClickhouseSettings - optimization settings', () => {
allow_experimental_analyzer: 1, allow_experimental_analyzer: 1,
date_time_output_format: 'iso', date_time_output_format: 'iso',
wait_end_of_query: 0, wait_end_of_query: 0,
output_format_json_quote_64bit_integers: 1,
cancel_http_readonly_queries_on_client_close: 1, cancel_http_readonly_queries_on_client_close: 1,
}); });
}); });
@ -475,6 +476,7 @@ describe('processClickhouseSettings - optimization settings', () => {
allow_experimental_analyzer: 1, allow_experimental_analyzer: 1,
date_time_output_format: 'iso', date_time_output_format: 'iso',
wait_end_of_query: 0, wait_end_of_query: 0,
output_format_json_quote_64bit_integers: 1,
cancel_http_readonly_queries_on_client_close: 1, cancel_http_readonly_queries_on_client_close: 1,
query_plan_optimize_lazy_materialization: '1', query_plan_optimize_lazy_materialization: '1',
query_plan_max_limit_for_lazy_materialization: '100000', query_plan_max_limit_for_lazy_materialization: '100000',
@ -507,6 +509,7 @@ describe('processClickhouseSettings - optimization settings', () => {
allow_experimental_analyzer: 1, allow_experimental_analyzer: 1,
date_time_output_format: 'iso', date_time_output_format: 'iso',
wait_end_of_query: 0, wait_end_of_query: 0,
output_format_json_quote_64bit_integers: 1,
cancel_http_readonly_queries_on_client_close: 1, cancel_http_readonly_queries_on_client_close: 1,
use_skip_indexes_for_top_k: '1', use_skip_indexes_for_top_k: '1',
use_skip_indexes_on_data_read: '1', use_skip_indexes_on_data_read: '1',
@ -535,6 +538,7 @@ describe('processClickhouseSettings - optimization settings', () => {
allow_experimental_analyzer: 1, allow_experimental_analyzer: 1,
date_time_output_format: 'iso', date_time_output_format: 'iso',
wait_end_of_query: 0, wait_end_of_query: 0,
output_format_json_quote_64bit_integers: 1,
cancel_http_readonly_queries_on_client_close: 1, cancel_http_readonly_queries_on_client_close: 1,
use_skip_indexes_for_top_k: '1', use_skip_indexes_for_top_k: '1',
max_rows_to_read: '1000000', max_rows_to_read: '1000000',
@ -582,6 +586,7 @@ describe('processClickhouseSettings - optimization settings', () => {
allow_experimental_analyzer: 1, allow_experimental_analyzer: 1,
date_time_output_format: 'iso', date_time_output_format: 'iso',
wait_end_of_query: 0, wait_end_of_query: 0,
output_format_json_quote_64bit_integers: 1,
cancel_http_readonly_queries_on_client_close: 1, cancel_http_readonly_queries_on_client_close: 1,
}); });
}); });

View file

@ -522,6 +522,7 @@ export abstract class BaseClickhouseClient {
date_time_output_format: 'iso', date_time_output_format: 'iso',
wait_end_of_query: 0, wait_end_of_query: 0,
cancel_http_readonly_queries_on_client_close: 1, cancel_http_readonly_queries_on_client_close: 1,
output_format_json_quote_64bit_integers: 1, // In 25.8, the default value for this was changed from 1 to 0. Due to JavaScript's poor precision for big integers, we should enable this https://github.com/ClickHouse/ClickHouse/pull/74079
}; };
const metadata = getMetadata(this); const metadata = getMetadata(this);