Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

disable keep alive clickhouse

Carl-Gerhard Lindesvärd8b346f8466d3
diff --git a/packages/db/src/clickhouse-client.ts b/packages/db/src/clickhouse-client.ts
index 79b4b5a4c..58d835d1a 100644
--- a/packages/db/src/clickhouse-client.ts
+++ b/packages/db/src/clickhouse-client.ts
@@ -6,9 +6,8 @@ export const ch = createClient({
password: process.env.CLICKHOUSE_PASSWORD,
database: process.env.CLICKHOUSE_DB,
keep_alive: {
- enabled: true,
+ enabled: false,
retry_on_expired_socket: true,
- socket_ttl: 2500,
},
});