From 56eef6969c188502348d6ebe169800716b4ed118 Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Thu, 21 May 2026 18:10:33 +0000 Subject: [PATCH] fix: configure Presidio analyzer workers Co-authored-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com> --- charts/langsmith/README.md | 1 + charts/langsmith/templates/presidio-analyzer/deployment.yaml | 3 ++- charts/langsmith/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/langsmith/README.md b/charts/langsmith/README.md index f37eec65..6b95cae7 100644 --- a/charts/langsmith/README.md +++ b/charts/langsmith/README.md @@ -1660,6 +1660,7 @@ For information on how to use this chart, up-to-date release notes, and other gu | presidioAnalyzer.autoscaling.minReplicas | int | `1` | | | presidioAnalyzer.autoscaling.targetCPUUtilizationPercentage | int | `80` | | | presidioAnalyzer.containerPort | int | `3000` | | +| presidioAnalyzer.workers | int | `2` | Number of Gunicorn workers for the Presidio analyzer. | | presidioAnalyzer.deployment.affinity | object | `{}` | | | presidioAnalyzer.deployment.annotations | object | `{}` | | | presidioAnalyzer.deployment.extraContainerConfig | object | `{}` | | diff --git a/charts/langsmith/templates/presidio-analyzer/deployment.yaml b/charts/langsmith/templates/presidio-analyzer/deployment.yaml index 77990841..085bf2bc 100644 --- a/charts/langsmith/templates/presidio-analyzer/deployment.yaml +++ b/charts/langsmith/templates/presidio-analyzer/deployment.yaml @@ -1,5 +1,6 @@ {{- if .Values.presidioAnalyzer.enabled }} -{{- $envVars := concat .Values.commonEnv (include "langsmith.commonEnv" . | fromYamlArray) .Values.presidioAnalyzer.deployment.extraEnv -}} +{{- $presidioWorkerEnv := list (dict "name" "WORKERS" "value" (toString .Values.presidioAnalyzer.workers)) -}} +{{- $envVars := concat .Values.commonEnv (include "langsmith.commonEnv" . | fromYamlArray) $presidioWorkerEnv .Values.presidioAnalyzer.deployment.extraEnv -}} {{- $volumes := concat .Values.commonVolumes .Values.presidioAnalyzer.deployment.volumes (include "langsmith.tlsVolumes" . | fromYamlArray) -}} {{- $volumeMounts := concat .Values.commonVolumeMounts .Values.presidioAnalyzer.deployment.volumeMounts (include "langsmith.tlsVolumeMounts" . | fromYamlArray) -}} apiVersion: apps/v1 diff --git a/charts/langsmith/values.yaml b/charts/langsmith/values.yaml index 15af0d15..cc32577c 100644 --- a/charts/langsmith/values.yaml +++ b/charts/langsmith/values.yaml @@ -2961,6 +2961,8 @@ presidioAnalyzer: enabled: false name: "presidio-analyzer" containerPort: 3000 + # -- Number of Gunicorn workers for the Presidio analyzer. + workers: 2 deployment: replicas: 1 labels: {}