Skip to content

Commit

Permalink
Remove changes unrelated to this PR and update uninstall script.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpb80 committed Jan 20, 2025
1 parent f60327a commit dff0e14
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/aws_ecs_fargate/cloudformation/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ delete_stack() {

if [ "$stack_name" == "${ENVIRONMENT}-onyx-cluster" ]; then
echo "Removing all objects and directories from the onyx config s3 bucket."
aws s3 rm "s3://${ENVIRONMENT}-${S3_BUCKET} --recursive"
aws s3 rm "s3://${ENVIRONMENT}-${S3_BUCKET}" --recursive
sleep 5
fi

Expand Down
19 changes: 19 additions & 0 deletions deployment/cloud_kubernetes/hpa/workers_hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,22 @@ spec:
target:
type: Utilization
averageUtilization: 70
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: celery-worker-monitoring-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: celery-worker-indexing
minReplicas: 1
maxReplicas: 4
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
62 changes: 62 additions & 0 deletions deployment/cloud_kubernetes/workers/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: celery-worker-monitoring
spec:
replicas: 2
selector:
matchLabels:
app: celery-worker-monitoring
template:
metadata:
labels:
app: celery-worker-monitoring
spec:
containers:
- name: celery-worker-monitoring
image: onyxdotapp/onyx-backend-cloud:v0.14.0-cloud.beta.21
imagePullPolicy: IfNotPresent
command:
[
"celery",
"-A",
"onyx.background.celery.versioned_apps.monitoring",
"worker",
"--loglevel=INFO",
"--hostname=monitoring@%n",
"-Q",
"monitoring",
"--prefetch-multiplier=8",
"--concurrency=8",
]
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: onyx-secrets
key: redis_password
- name: ONYX_VERSION
value: "v0.11.0-cloud.beta.8"
envFrom:
- configMapRef:
name: env-configmap
volumeMounts:
- name: vespa-certificates
mountPath: "/app/certs"
readOnly: true
resources:
requests:
cpu: "1000m"
memory: "1Gi"
limits:
cpu: "1000m"
memory: "1Gi"
volumes:
- name: vespa-certificates
secret:
secretName: vespa-certificates
items:
- key: cert.pem
path: cert.pem
- key: key.pem
path: key.pem

0 comments on commit dff0e14

Please sign in to comment.