From dc76e0b75de0e0c23c62448d9d12c782924ea29a Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Wed, 11 Sep 2024 18:07:03 +0200 Subject: [PATCH] enh: attempr to recuce notion worker memory usage (#7305) Co-authored-by: Henry Fontanier --- connectors/src/connectors/notion/temporal/worker.ts | 1 + k8s/configmaps/connectors-worker-specific-configmap.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/connectors/src/connectors/notion/temporal/worker.ts b/connectors/src/connectors/notion/temporal/worker.ts index e02b249efcd3..494a8958ca41 100644 --- a/connectors/src/connectors/notion/temporal/worker.ts +++ b/connectors/src/connectors/notion/temporal/worker.ts @@ -18,6 +18,7 @@ export async function runNotionWorker() { reuseV8Context: true, namespace, maxConcurrentActivityTaskExecutions: 8, + maxCachedWorkflows: 200, interceptors: { activityInbound: [ (ctx: Context) => { diff --git a/k8s/configmaps/connectors-worker-specific-configmap.yaml b/k8s/configmaps/connectors-worker-specific-configmap.yaml index cc8c3605cb7f..bfb3d8ca9536 100644 --- a/k8s/configmaps/connectors-worker-specific-configmap.yaml +++ b/k8s/configmaps/connectors-worker-specific-configmap.yaml @@ -5,7 +5,7 @@ metadata: data: DD_ENV: "prod" DD_SERVICE: "connectors-worker" - NODE_OPTIONS: "-r dd-trace/init --max-old-space-size=3276" + NODE_OPTIONS: "-r dd-trace/init --max-old-space-size=3000" DD_LOGS_INJECTION: "true" DD_RUNTIME_METRICS_ENABLED: "true" NODE_ENV: "production"