From 1a7eb3bfb3561960789d79028cc7d75351a75abb Mon Sep 17 00:00:00 2001 From: d-robotics Date: Thu, 24 Sep 2026 12:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Keep=20Fanyu=20slice=20processin?= =?UTF-8?q?g=20in=20a=20bounded=20external=20worker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/annotation-processor.template.yaml | 6 ++++-- scripts/deploy-envs/fanyu.env | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/k8s/annotation-processor.template.yaml b/k8s/annotation-processor.template.yaml index 76ff931d..c34493e2 100644 --- a/k8s/annotation-processor.template.yaml +++ b/k8s/annotation-processor.template.yaml @@ -6,6 +6,8 @@ metadata: namespace: __NAMESPACE__ spec: replicas: 1 + strategy: + type: Recreate selector: matchLabels: {app: droboticflow-annotation-processor} template: @@ -22,8 +24,8 @@ spec: command: [/usr/local/bin/droboticflow-api] env: - {name: ANNOTATION_PROCESSOR_MODE, value: processor} - - {name: ANNOTATION_PROCESSOR_CONCURRENCY, value: "2"} - - {name: ANNOTATION_INDEX_BACKFILL, value: "1"} + - {name: ANNOTATION_PROCESSOR_CONCURRENCY, value: "1"} + - {name: ANNOTATION_INDEX_BACKFILL, value: "0"} - {name: WORKSPACE_MOUNT_PATH, value: "__WORKSPACE_MOUNT_PATH__"} - {name: GLOBAL_BOS_ENDPOINT, value: "__BOS_ENDPOINT__"} - {name: ANNOTATION_WORKSPACE_CONNECTION_ID, value: "__ANNOTATION_WORKSPACE_CONNECTION_ID__"} diff --git a/scripts/deploy-envs/fanyu.env b/scripts/deploy-envs/fanyu.env index 1888073f..7626a216 100644 --- a/scripts/deploy-envs/fanyu.env +++ b/scripts/deploy-envs/fanyu.env @@ -12,3 +12,6 @@ export K8S_IMAGE_PULL_SECRET_NAME="${K8S_IMAGE_PULL_SECRET_NAME:-droboticflow-re export WORKSPACE_PVC_NAME="${WORKSPACE_PVC_NAME:-droboticflow-workspace}" export WORKSPACE_MOUNT_PATH="${WORKSPACE_MOUNT_PATH:-/workspace}" export WORKSPACE_BOS_BUCKET="${WORKSPACE_BOS_BUCKET:-drobodata-fanyu}" + +# Keep heavy slice materialization out of the web API. +export ANNOTATION_PROCESSOR_ENABLED="${ANNOTATION_PROCESSOR_ENABLED:-true}"