Add PyPI cache worker config and increase memory limit
- Add orchard.pypiCache config section to helm values - Set default workers to 2 (reduced from 5 to limit memory) - Bump pod memory from 512Mi to 768Mi (request=limit) - Add ORCHARD_PYPI_CACHE_* env vars to deployment template
This commit is contained in:
@@ -144,6 +144,20 @@ spec:
|
|||||||
- name: ORCHARD_DATABASE_POOL_TIMEOUT
|
- name: ORCHARD_DATABASE_POOL_TIMEOUT
|
||||||
value: {{ .Values.orchard.database.poolTimeout | quote }}
|
value: {{ .Values.orchard.database.poolTimeout | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.orchard.pypiCache }}
|
||||||
|
{{- if .Values.orchard.pypiCache.workers }}
|
||||||
|
- name: ORCHARD_PYPI_CACHE_WORKERS
|
||||||
|
value: {{ .Values.orchard.pypiCache.workers | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.orchard.pypiCache.maxDepth }}
|
||||||
|
- name: ORCHARD_PYPI_CACHE_MAX_DEPTH
|
||||||
|
value: {{ .Values.orchard.pypiCache.maxDepth | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.orchard.pypiCache.maxAttempts }}
|
||||||
|
- name: ORCHARD_PYPI_CACHE_MAX_ATTEMPTS
|
||||||
|
value: {{ .Values.orchard.pypiCache.maxAttempts | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.orchard.auth }}
|
{{- if .Values.orchard.auth }}
|
||||||
{{- if or .Values.orchard.auth.secretsManager .Values.orchard.auth.existingSecret .Values.orchard.auth.adminPassword }}
|
{{- if or .Values.orchard.auth.secretsManager .Values.orchard.auth.existingSecret .Values.orchard.auth.adminPassword }}
|
||||||
- name: ORCHARD_ADMIN_PASSWORD
|
- name: ORCHARD_ADMIN_PASSWORD
|
||||||
|
|||||||
@@ -54,10 +54,10 @@ ingress:
|
|||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
memory: 512Mi
|
memory: 768Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
memory: 512Mi
|
memory: 768Mi
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
@@ -120,6 +120,12 @@ orchard:
|
|||||||
mode: "presigned" # presigned, redirect, or proxy
|
mode: "presigned" # presigned, redirect, or proxy
|
||||||
presignedUrlExpiry: 3600 # Presigned URL expiry in seconds
|
presignedUrlExpiry: 3600 # Presigned URL expiry in seconds
|
||||||
|
|
||||||
|
# PyPI Cache Worker settings
|
||||||
|
pypiCache:
|
||||||
|
workers: 2 # Number of concurrent cache workers (reduced to limit memory usage)
|
||||||
|
maxDepth: 10 # Maximum recursion depth for dependency caching
|
||||||
|
maxAttempts: 3 # Maximum retry attempts for failed cache tasks
|
||||||
|
|
||||||
# Authentication settings
|
# Authentication settings
|
||||||
auth:
|
auth:
|
||||||
# Option 1: Plain admin password (creates K8s secret)
|
# Option 1: Plain admin password (creates K8s secret)
|
||||||
|
|||||||
Reference in New Issue
Block a user