Hi,
Before deploying an HPA, I wanted to really feel comfortable with how it works, by scaling a deployment up and down, and observing results.
Existing tutorials run wget in a loop to generate load. Which is better than nothing. But what about a proper load tester that can be scaled in a controlled and understandable way? I searched for such software and found k6. “k6 Open Source is designed for load testing”.
Also our company’s deployment was Django, rather than PHP. It seemed interesting to build a new Django app from scratch, very basic, and embed a stress command into it. Then hit that with k6. Play around to adjust the settings.
Maybe this would be interesting to other people also.
All the code is https://github.com/sdarwin/django-load-test
If you have any feedback, let me know.