How is Python scaling with Gunicorn and Kubernetes? How is Python scaling with Gunicorn and Kubernetes? flask flask

How is Python scaling with Gunicorn and Kubernetes?


I recommend you set up an HPA Horizontal Pod Autoscaler for your workers.

It will require to set up support for the metrics API. For custom metrics on the later versions of Kubernetes heapster has been deprecated in favor of the metrics server

If you are using the public Cloud like AWS, GCP, or Azure I'd also recommend setting up an Autoscaling Group so that you can scale your VMs or server base on metrics like CPU utilization average.

Hope it helps!