Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 826 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 826 Bytes

Azure Kubernetes Service (AKS) scaling demo

Components

  1. Cluster autoscaler
  2. Kubernetes Event Driven Autoscaling (KEDA) with a Prometheus scaler
  3. Azure Monitor managed service for Prometheus
  4. Azure Managed Grafana

Setup

  1. Login using az login
  2. Make sure kubectl is installed
  3. Make sure yq is installed (https://github.com/mikefarah/yq/#install)
  4. Run ./setup.sh (or ./setup-scn2.sh for the optimized setup)

Exposed endpoints

  1. /workout: generates long strings and stores them in memory
  2. /metrics: Prometheus metrics
  3. /stats: .NET stats

Test

  1. Run a load test against the /workout endpoint
  2. Review the Grafana dashboards
  3. Observe KEDA scaling the serverloader deployment based on requests per second
  4. Observe cluster autoscaler adding more nodes to the cluster