From 5c24571b0e627467471a759524a9b2e0c65ca6d9 Mon Sep 17 00:00:00 2001 From: Edwin Obando Date: Thu, 25 Apr 2024 16:54:19 -0500 Subject: [PATCH 1/2] perf: increase timeout config to reduce timeout errors in large carts --- node/index.ts | 4 ++-- node/service.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 From 32ff79c691f6b46d26e9e8184791c6affa72ac2e Mon Sep 17 00:00:00 2001 From: Edwin Obando Date: Thu, 25 Apr 2024 16:56:02 -0500 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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