Skip to content

aurelio-labs/fastapi-scalling

Repository files navigation

Get started

helm repo add kedacore https://kedacore.github.io/charts
helm install keda kedacore/keda --namespace keda --create-namespace

helm install http-add-on kedacore/keda-add-ons-http --namespace keda --create-namespace

Load test the application

First application can scale to 0 alt text

  • Load test make load_test

Load test is under load_test.sh file Or run Locust:

uv run locust -f locust.py --host http://keda.fastapi.localdev.me --users 100 --spawn-rate 10 -t 5m

Results: alt text alt text

  • Monitor the scaling in k9s

Reference

https://github.com/kedacore/http-add-on https://github.com/kedacore/charts https://cloud.theodo.com/en/blog/keda https://devtron.ai/blog/http-request-based-autoscaling-with-keda/

Optional

Export metrics via Prometheus

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published