Skip to content

Commit

Permalink
fix: update the timeouts for clickhouse and platform service (#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
JivusAyrus authored Jan 8, 2025
1 parent 7f0f4bb commit d425aa1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cli/src/core/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const CreateClient = (opts: ClientOptions): Client => {

// Interceptors apply to all calls running through this transport.
interceptors: [],
defaultTimeoutMs: 75_000,
});

return {
Expand Down
2 changes: 1 addition & 1 deletion controlplane/src/core/build-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export default async function build(opts: BuildConfig) {
logLevel: opts.logger.level as pino.LevelWithSilent,
// Avoid compression for small requests
compressMinBytes: 1024,
maxTimeoutMs: 25_000,
maxTimeoutMs: 80_000,
shutdownTimeoutMs: 30_000,
// The default limit is the maximum supported value of ~4GiB
// We go with 32MiB to avoid allocating too much memory for large requests
Expand Down
2 changes: 1 addition & 1 deletion controlplane/src/core/plugins/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default fp<ChPluginOptions>(async function ClickHousePlugin(fastify, opts
dsn: opts.dsn,
logger: opts.logger,
httpConfig: {
timeout: 20_000,
timeout: 60_000,
},
});

Expand Down
2 changes: 1 addition & 1 deletion controlplane/src/core/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface RouterOptions {
cdnBaseUrl: string;
}
const handlerOptions: Partial<ConnectRouterOptions> = {
maxTimeoutMs: 25_000,
maxTimeoutMs: 80_000,
jsonOptions: {
emitDefaultValues: true,
},
Expand Down

0 comments on commit d425aa1

Please sign in to comment.