cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

Scale celery based on SQS rather than cpu / memory #200

Open sastels opened 9 months ago

sastels commented 9 months ago

Description

As a develorer, I need the system to scale up and down reliably

WHY are we building?

Have the system scale up and down as need in a more predictable way

WHAT are we building?

conversation with Max:

Random musing - I am assuming your are scaling in and out based on CPU/Memory pressure? It would be interesting if you could scale based on SQS metrics instead. Presumably you would need to be able to ingress metrics from CloudWatch into k8s and then use those as policies to scale.

GKE has something like this https://github.com/GoogleCloudPlatform/k8s-stackdriver/blob/master/custom-metrics-stackdriver-adapter/README.md

or - https://keda.sh/docs/2.11/scalers/aws-sqs/

VALUE created by our solution

better scaling then using cpu or memory metrics

Acceptance Criteria

QA Steps