plane claude changes

This commit is contained in:
titver968
2025-10-24 11:05:30 +02:00
parent 295d8dd329
commit 96c7508465

View File

@@ -5,7 +5,6 @@ metadata:
finalizers: finalizers:
- resources-finalizer.argocd.argoproj.io - resources-finalizer.argocd.argoproj.io
spec: spec:
# Health Check für Worker überspringen (temporär)
ignoreDifferences: ignoreDifferences:
# PVCs - creationTimestamp und Status ignorieren # PVCs - creationTimestamp und Status ignorieren
- group: "" - group: ""
@@ -60,45 +59,47 @@ spec:
aws_secret_access_key: "0d54ee2f943f2a56b8cafc3afe9cb1e2f9fecac2" aws_secret_access_key: "0d54ee2f943f2a56b8cafc3afe9cb1e2f9fecac2"
aws_region: "eu-central-1" aws_region: "eu-central-1"
aws_s3_endpoint_url: "https://sws3.innovation-hub-niedersachsen.de" aws_s3_endpoint_url: "https://sws3.innovation-hub-niedersachsen.de"
# Celery Worker Konfiguration - Reduziere Concurrency für Stabilität # Celery Worker Konfiguration - Optimiert für Stabilität
CELERY_WORKER_CONCURRENCY: "4" CELERY_WORKER_CONCURRENCY: "2"
CELERY_WORKER_MAX_TASKS_PER_CHILD: "500" CELERY_WORKER_MAX_TASKS_PER_CHILD: "100"
CELERY_WORKER_MAX_MEMORY_PER_CHILD: "100000" CELERY_WORKER_MAX_MEMORY_PER_CHILD: "200000"
# Task Timeouts zur Vermeidung von Memory-Leaks
CELERY_TASK_SOFT_TIME_LIMIT: "300"
CELERY_TASK_TIME_LIMIT: "600"
# Worker-spezifische Einstellungen # Worker-spezifische Einstellungen
worker: worker:
# Reduziere Replicas falls zu viele Workers laufen
replicas: 1 replicas: 1
# Celery Concurrency (Anzahl paralleler Worker-Prozesse) # Reduzierte Concurrency für bessere Memory-Nutzung
concurrency: 4 concurrency: 2
resources: resources:
requests: requests:
memory: "8Gi" memory: "2Gi"
cpu: "600m" cpu: "500m"
limits: limits:
memory: "4Gi" memory: "6Gi"
cpu: "1000m" cpu: "2000m"
# Exec-basierte Probes für Celery Worker # Vereinfachte Health Checks
readinessProbe: readinessProbe:
exec: exec:
command: command:
- /bin/sh - /bin/sh
- -c - -c
- celery -A plane inspect ping -d celery@$HOSTNAME - celery -A plane inspect ping -d celery@$HOSTNAME -t 5
initialDelaySeconds: 30 initialDelaySeconds: 60
periodSeconds: 30 periodSeconds: 60
timeoutSeconds: 10 timeoutSeconds: 15
failureThreshold: 3 failureThreshold: 5
livenessProbe: livenessProbe:
exec: exec:
command: command:
- /bin/sh - /bin/sh
- -c - -c
- celery -A plane inspect ping -d celery@$HOSTNAME - celery -A plane inspect ping -d celery@$HOSTNAME -t 5
initialDelaySeconds: 60 initialDelaySeconds: 120
periodSeconds: 60 periodSeconds: 120
timeoutSeconds: 10 timeoutSeconds: 15
failureThreshold: 3 failureThreshold: 5
destination: destination:
server: 'https://kubernetes.default.svc' server: 'https://kubernetes.default.svc'