plane claude 2

This commit is contained in:
titver968
2025-10-24 11:40:51 +02:00
parent 2f1f2de7db
commit f3483e23c7

View File

@@ -6,14 +6,12 @@ metadata:
- resources-finalizer.argocd.argoproj.io - resources-finalizer.argocd.argoproj.io
spec: spec:
ignoreDifferences: ignoreDifferences:
# PVCs - creationTimestamp und Status ignorieren
- group: "" - group: ""
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
jsonPointers: jsonPointers:
- /metadata/creationTimestamp - /metadata/creationTimestamp
- /status - /status
# StatefulSets - alle volumeClaimTemplates komplett ignorieren
- group: apps - group: apps
kind: StatefulSet kind: StatefulSet
jsonPointers: jsonPointers:
@@ -21,7 +19,6 @@ spec:
- /status - /status
- /spec/replicas - /spec/replicas
# Worker Deployment - Replica Status ignorieren
- group: apps - group: apps
kind: Deployment kind: Deployment
name: plane-worker-wl name: plane-worker-wl
@@ -59,47 +56,53 @@ 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 - Optimiert für Stabilität
CELERY_WORKER_CONCURRENCY: "2" # Celery Worker - Aggressive Memory-Begrenzung
CELERY_WORKER_MAX_TASKS_PER_CHILD: "100" CELERY_WORKER_CONCURRENCY: "1"
CELERY_WORKER_MAX_MEMORY_PER_CHILD: "200000" CELERY_WORKER_MAX_TASKS_PER_CHILD: "10"
# Task Timeouts zur Vermeidung von Memory-Leaks CELERY_WORKER_MAX_MEMORY_PER_CHILD: "500000"
CELERY_TASK_SOFT_TIME_LIMIT: "300" CELERY_WORKER_PREFETCH_MULTIPLIER: "1"
CELERY_TASK_TIME_LIMIT: "600"
# Task Limits - Sehr restriktiv
CELERY_TASK_SOFT_TIME_LIMIT: "120"
CELERY_TASK_TIME_LIMIT: "180"
CELERY_TASK_ACKS_LATE: "true"
CELERY_TASK_REJECT_ON_WORKER_LOST: "true"
# Python Memory Management
PYTHONMALLOC: "malloc"
MALLOC_TRIM_THRESHOLD_: "65536"
# Logging reduzieren
CELERY_WORKER_LOG_LEVEL: "WARNING"
# Worker-spezifische Einstellungen
worker: worker:
replicas: 1 replicas: 1
# Reduzierte Concurrency für bessere Memory-Nutzung
concurrency: 1 concurrency: 1
resources: resources:
requests: requests:
memory: "4Gi" memory: "2Gi"
cpu: "500m" cpu: "500m"
limits: limits:
memory: "8Gi" memory: "6Gi"
cpu: "2000m" cpu: "1500m"
# Vereinfachte Health Checks
# Health Checks komplett deaktiviert für Debugging
readinessProbe: readinessProbe:
exec: exec:
command: command: ["/bin/true"]
- /bin/sh initialDelaySeconds: 10
- -c periodSeconds: 300
- celery -A plane inspect ping -d celery@$HOSTNAME -t 5
initialDelaySeconds: 60
periodSeconds: 60
timeoutSeconds: 15
failureThreshold: 5
livenessProbe: livenessProbe:
exec: exec:
command: command: ["/bin/true"]
- /bin/sh initialDelaySeconds: 30
- -c periodSeconds: 300
- celery -A plane inspect ping -d celery@$HOSTNAME -t 5
initialDelaySeconds: 120 # Graceful Shutdown
periodSeconds: 120 terminationGracePeriodSeconds: 60
timeoutSeconds: 15
failureThreshold: 5
destination: destination:
server: 'https://kubernetes.default.svc' server: 'https://kubernetes.default.svc'