Skip to content

Commit

Permalink
more reasonable limits
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 9, 2024
1 parent a1b95df commit 33ea51f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
10 changes: 5 additions & 5 deletions backend/danswer/background/celery/tasks/beat_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@
{
"name": "check-for-vespa-sync",
"task": "check_for_vespa_sync_task",
"schedule": timedelta(seconds=5),
"schedule": timedelta(seconds=60),
"options": {"priority": DanswerCeleryPriority.HIGH},
},
{
"name": "check-for-connector-deletion",
"task": "check_for_connector_deletion_task",
"schedule": timedelta(seconds=20),
"schedule": timedelta(seconds=60),
"options": {"priority": DanswerCeleryPriority.HIGH},
},
{
"name": "check-for-indexing",
"task": "check_for_indexing",
"schedule": timedelta(seconds=10),
"schedule": timedelta(seconds=60),
"options": {"priority": DanswerCeleryPriority.HIGH},
},
{
"name": "check-for-prune",
"task": "check_for_pruning",
"schedule": timedelta(seconds=10),
"schedule": timedelta(seconds=60),
"options": {"priority": DanswerCeleryPriority.HIGH},
},
{
Expand All @@ -38,7 +38,7 @@
{
"name": "monitor-vespa-sync",
"task": "monitor_vespa_sync",
"schedule": timedelta(seconds=5),
"schedule": timedelta(seconds=60),
"options": {"priority": DanswerCeleryPriority.HIGH},
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ metadata:
spec:
scaleTargetRef:
name: celery-worker-indexing
minReplicaCount: 1
maxReplicaCount: 10
minReplicaCount: 0
maxReplicaCount: 0
triggers:
- type: redis
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ metadata:
spec:
scaleTargetRef:
name: celery-worker-light
minReplicaCount: 1
minReplicaCount: 5
maxReplicaCount: 20
triggers:
- type: redis
metadata:
host: "{host}"
host: "master.redisencrypted.4h4xor.use2.cache.amazonaws.com"
port: "6379"
enableTLS: "true"
listName: vespa_metadata_sync
Expand All @@ -23,7 +23,7 @@ spec:
name: celery-worker-auth
- type: redis
metadata:
host: "{host}"
host: "master.redisencrypted.4h4xor.use2.cache.amazonaws.com"
port: "6379"
enableTLS: "true"
listName: vespa_metadata_sync:2
Expand All @@ -33,7 +33,7 @@ spec:
name: celery-worker-auth
- type: redis
metadata:
host: "{host}"
host: "master.redisencrypted.4h4xor.use2.cache.amazonaws.com"
port: "6379"
enableTLS: "true"
listName: vespa_metadata_sync:3
Expand All @@ -43,7 +43,7 @@ spec:
name: celery-worker-auth
- type: redis
metadata:
host: "{host}"
host: "master.redisencrypted.4h4xor.use2.cache.amazonaws.com"
port: "6379"
enableTLS: "true"
listName: connector_deletion
Expand All @@ -53,7 +53,7 @@ spec:
name: celery-worker-auth
- type: redis
metadata:
host: "{host}"
host: "master.redisencrypted.4h4xor.use2.cache.amazonaws.com"
port: "6379"
enableTLS: "true"
listName: connector_deletion:2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ spec:
name: celery-worker-primary
pollingInterval: 15 # Check every 15 seconds
cooldownPeriod: 30 # Wait 30 seconds before scaling down
minReplicaCount: 1
maxReplicaCount: 1
minReplicaCount: 0
maxReplicaCount: 0
triggers:
- type: redis
metadata:
Expand Down
2 changes: 0 additions & 2 deletions deployment/cloud_kubernetes/keda/keda-redis-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ metadata:
namespace: danswer
type: Opaque
data:
host: { { base64-encoded-hostname } }
password: { { base64-encoded-password } }

0 comments on commit 33ea51f

Please sign in to comment.