diff --git a/CHANGELOG.md b/CHANGELOG.md index cd371a3..e081654 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Increase timeout + ## [0.67.0] - 2024-02-27 ### Added diff --git a/node/index.ts b/node/index.ts index 8cb9ef6..cdca87a 100644 --- a/node/index.ts +++ b/node/index.ts @@ -5,7 +5,7 @@ import { schemaDirectives } from './directives' import { resolvers } from './resolvers' const THREE_SECONDS_MS = 3 * 1000 -const TEN_SECONDS_MS = 10 * 1000 +const FORTY_FIVE_SECONDS_MS = 45 * 1000 // Segments are small and immutable. const MAX_SEGMENT_CACHE = 10000 @@ -20,7 +20,7 @@ export default new Service({ implementation: Clients, options: { checkout: { - timeout: TEN_SECONDS_MS, + timeout: FORTY_FIVE_SECONDS_MS, }, default: { retries: 2, diff --git a/node/service.json b/node/service.json index 00ae51b..244510a 100644 --- a/node/service.json +++ b/node/service.json @@ -2,8 +2,8 @@ "stack": "nodejs", "memory": 258, "ttl": 43200, - "timeout": 30, - "minReplicas": 2, + "timeout": 45, + "minReplicas": 4, "maxReplicas": 120, "workers": 4, "cpu": 30