chore(langfuse): adjust resources
This commit is contained in:
@@ -98,8 +98,8 @@ install:
|
|||||||
--version ${LANGFUSE_CHART_VERSION} -n ${LANGFUSE_NAMESPACE} --wait \
|
--version ${LANGFUSE_CHART_VERSION} -n ${LANGFUSE_NAMESPACE} --wait \
|
||||||
-f langfuse-values.yaml
|
-f langfuse-values.yaml
|
||||||
|
|
||||||
# Uninstall Langfuse
|
# Uninstall Langfuse (delete-data: true to delete database and storage)
|
||||||
uninstall:
|
uninstall delete-data='false':
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
helm uninstall langfuse -n ${LANGFUSE_NAMESPACE} --wait --ignore-not-found
|
helm uninstall langfuse -n ${LANGFUSE_NAMESPACE} --wait --ignore-not-found
|
||||||
@@ -108,6 +108,17 @@ uninstall:
|
|||||||
# Clean up Keycloak client and Vault secrets to avoid stale credentials
|
# Clean up Keycloak client and Vault secrets to avoid stale credentials
|
||||||
just delete-keycloak-client || true
|
just delete-keycloak-client || true
|
||||||
|
|
||||||
|
if [ "{{ delete-data }}" = "true" ]; then
|
||||||
|
echo "Deleting database and storage..."
|
||||||
|
just delete-postgres-user-and-db || true
|
||||||
|
just delete-clickhouse-user || true
|
||||||
|
just delete-minio-user || true
|
||||||
|
just delete-keycloak-user || true
|
||||||
|
just delete-salt || true
|
||||||
|
just delete-nextauth-secret || true
|
||||||
|
just delete-redis-password || true
|
||||||
|
echo "Langfuse uninstalled with all data deleted."
|
||||||
|
else
|
||||||
echo "Langfuse uninstalled successfully"
|
echo "Langfuse uninstalled successfully"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Note: The following resources were NOT deleted:"
|
echo "Note: The following resources were NOT deleted:"
|
||||||
@@ -115,12 +126,11 @@ uninstall:
|
|||||||
echo " - ClickHouse user and database (langfuse)"
|
echo " - ClickHouse user and database (langfuse)"
|
||||||
echo " - MinIO user and bucket (langfuse)"
|
echo " - MinIO user and bucket (langfuse)"
|
||||||
echo " - Keycloak user (langfuse)"
|
echo " - Keycloak user (langfuse)"
|
||||||
|
echo " - Vault secrets (langfuse/*)"
|
||||||
echo ""
|
echo ""
|
||||||
echo "To delete these resources, run:"
|
echo "To delete all data, run:"
|
||||||
echo " just langfuse::delete-postgres-user-and-db"
|
echo " just langfuse::uninstall true"
|
||||||
echo " just langfuse::delete-clickhouse-user"
|
fi
|
||||||
echo " just langfuse::delete-minio-user"
|
|
||||||
echo " just langfuse::delete-keycloak-user"
|
|
||||||
|
|
||||||
# Create all secrets (PostgreSQL, Keycloak, MinIO, Redis)
|
# Create all secrets (PostgreSQL, Keycloak, MinIO, Redis)
|
||||||
create-secrets:
|
create-secrets:
|
||||||
|
|||||||
@@ -69,13 +69,13 @@ langfuse:
|
|||||||
tls:
|
tls:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# Resource configuration based on Goldilocks/VPA recommendations
|
# Resource recommendations from Goldilocks VPA
|
||||||
# CPU limits increased to handle startup spikes
|
# web target: cpu=15m, memory=717Mi
|
||||||
web:
|
web:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 25m
|
||||||
memory: 704Mi
|
memory: 768Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 1.5Gi
|
memory: 1.5Gi
|
||||||
@@ -89,10 +89,12 @@ langfuse:
|
|||||||
timeoutSeconds: 30
|
timeoutSeconds: 30
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
|
|
||||||
|
# Resource recommendations from Goldilocks VPA
|
||||||
|
# worker target: cpu=15m, memory=380Mi
|
||||||
worker:
|
worker:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 15m
|
cpu: 25m
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
@@ -113,6 +115,16 @@ redis:
|
|||||||
username: "default"
|
username: "default"
|
||||||
existingSecret: redis-auth
|
existingSecret: redis-auth
|
||||||
existingSecretPasswordKey: secret
|
existingSecretPasswordKey: secret
|
||||||
|
# Resource recommendations from Goldilocks VPA
|
||||||
|
# valkey target: cpu=15m, memory=100Mi
|
||||||
|
master:
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 25m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
|
||||||
clickhouse:
|
clickhouse:
|
||||||
deploy: false
|
deploy: false
|
||||||
|
|||||||
Reference in New Issue
Block a user