mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
chore: update clickhouse version for compose files to 26.1 (#1791)
This commit is contained in:
parent
81a3259074
commit
8772f5e294
10 changed files with 17 additions and 10 deletions
5
.changeset/beige-lizards-peel.md
Normal file
5
.changeset/beige-lizards-peel.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
chore: update clickhouse versions for compose files
|
||||
|
|
@ -23,7 +23,7 @@ services:
|
|||
depends_on:
|
||||
- ch-server
|
||||
ch-server:
|
||||
image: clickhouse/clickhouse-server:25.6-alpine
|
||||
image: clickhouse/clickhouse-server:26.1-alpine
|
||||
environment:
|
||||
# default settings
|
||||
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ services:
|
|||
ch-server:
|
||||
condition: service_healthy
|
||||
ch-server:
|
||||
image: clickhouse/clickhouse-server:25.7-alpine
|
||||
image: clickhouse/clickhouse-server:26.1-alpine
|
||||
ports:
|
||||
- 8123:8123 # http api
|
||||
- 9000:9000 # native
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ services:
|
|||
- ch-server
|
||||
- db
|
||||
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,
|
||||
# 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).
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
# - Otel Collector (otelcol)
|
||||
|
||||
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_OPAMPSUPERVISOR_VERSION=0.145.0
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
"lint:fix": "npx eslint . --ext .ts --fix",
|
||||
"ci:lint": "yarn lint && yarn tsc --noEmit",
|
||||
"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": "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",
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@ const connectClickhouse = async () => {
|
|||
PARTITION BY toDate(TimestampTime)
|
||||
PRIMARY KEY (ServiceName, TimestampTime)
|
||||
ORDER BY (ServiceName, TimestampTime, Timestamp)
|
||||
TTL TimestampTime + toIntervalDay(3)
|
||||
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
|
||||
`,
|
||||
// Recommended for cluster usage to avoid situations
|
||||
|
|
@ -150,7 +149,6 @@ const connectClickhouse = async () => {
|
|||
ENGINE = MergeTree
|
||||
PARTITION BY toDate(TimeUnix)
|
||||
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
|
||||
TTL toDateTime(TimeUnix) + toIntervalDay(3)
|
||||
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
|
||||
`,
|
||||
// Recommended for cluster usage to avoid situations
|
||||
|
|
@ -194,7 +192,6 @@ const connectClickhouse = async () => {
|
|||
ENGINE = MergeTree
|
||||
PARTITION BY toDate(TimeUnix)
|
||||
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
|
||||
TTL toDateTime(TimeUnix) + toIntervalDay(15)
|
||||
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
|
||||
`,
|
||||
// Recommended for cluster usage to avoid situations
|
||||
|
|
@ -242,7 +239,6 @@ const connectClickhouse = async () => {
|
|||
ENGINE = MergeTree
|
||||
PARTITION BY toDate(TimeUnix)
|
||||
ORDER BY (ServiceName, MetricName, Attributes, toUnixTimestamp64Nano(TimeUnix))
|
||||
TTL toDateTime(TimeUnix) + toIntervalDay(3)
|
||||
SETTINGS index_granularity = 8192, ttl_only_drop_parts = 1
|
||||
`,
|
||||
// Recommended for cluster usage to avoid situations
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ services:
|
|||
memory: 512M
|
||||
cpus: '0.5'
|
||||
ch-server:
|
||||
image: clickhouse/clickhouse-server:25.6-alpine
|
||||
image: clickhouse/clickhouse-server:26.1-alpine
|
||||
ports:
|
||||
- 8123:8123 # http api
|
||||
- 9000:9000 # native
|
||||
|
|
|
|||
|
|
@ -443,6 +443,7 @@ describe('processClickhouseSettings - optimization settings', () => {
|
|||
allow_experimental_analyzer: 1,
|
||||
date_time_output_format: 'iso',
|
||||
wait_end_of_query: 0,
|
||||
output_format_json_quote_64bit_integers: 1,
|
||||
cancel_http_readonly_queries_on_client_close: 1,
|
||||
});
|
||||
});
|
||||
|
|
@ -475,6 +476,7 @@ describe('processClickhouseSettings - optimization settings', () => {
|
|||
allow_experimental_analyzer: 1,
|
||||
date_time_output_format: 'iso',
|
||||
wait_end_of_query: 0,
|
||||
output_format_json_quote_64bit_integers: 1,
|
||||
cancel_http_readonly_queries_on_client_close: 1,
|
||||
query_plan_optimize_lazy_materialization: '1',
|
||||
query_plan_max_limit_for_lazy_materialization: '100000',
|
||||
|
|
@ -507,6 +509,7 @@ describe('processClickhouseSettings - optimization settings', () => {
|
|||
allow_experimental_analyzer: 1,
|
||||
date_time_output_format: 'iso',
|
||||
wait_end_of_query: 0,
|
||||
output_format_json_quote_64bit_integers: 1,
|
||||
cancel_http_readonly_queries_on_client_close: 1,
|
||||
use_skip_indexes_for_top_k: '1',
|
||||
use_skip_indexes_on_data_read: '1',
|
||||
|
|
@ -535,6 +538,7 @@ describe('processClickhouseSettings - optimization settings', () => {
|
|||
allow_experimental_analyzer: 1,
|
||||
date_time_output_format: 'iso',
|
||||
wait_end_of_query: 0,
|
||||
output_format_json_quote_64bit_integers: 1,
|
||||
cancel_http_readonly_queries_on_client_close: 1,
|
||||
use_skip_indexes_for_top_k: '1',
|
||||
max_rows_to_read: '1000000',
|
||||
|
|
@ -582,6 +586,7 @@ describe('processClickhouseSettings - optimization settings', () => {
|
|||
allow_experimental_analyzer: 1,
|
||||
date_time_output_format: 'iso',
|
||||
wait_end_of_query: 0,
|
||||
output_format_json_quote_64bit_integers: 1,
|
||||
cancel_http_readonly_queries_on_client_close: 1,
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -522,6 +522,7 @@ export abstract class BaseClickhouseClient {
|
|||
date_time_output_format: 'iso',
|
||||
wait_end_of_query: 0,
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue