A very basic Django website that generates CPU usage on a server by running the 'stress' command.
The purpose is to experiment with the HPA (horizontal pod autoscaler) and cluster scaler on kubernetes, while allowing the CPU to be adjusted on both the client and server side. Uses k6 to generate web traffic.
Github Actions and the codebase have already been configured so it should be as convenient as possible to deploy and then test the HPA, which is the aim of the project.
First, set up a cluster on a k8s service provider. The following notes will assist with GKE, EKS, or Digital Ocean.
GCP Google Kubernetes Engine (GKE) notes
AWS Elastic Kubernetes Service (EKS) notes
Digital Ocean Kubernetes (DOKS) notes
Run tests to experiment:
The load test process
Other references:
Building the Django app
Feedback and bug reports are welcome.