Loïc Guzzetta
Loïc Guzzetta

Reputation: 158

Is there a way to autoscale a Redis cluster on Kubernetes?

After some readings, it seems there is no sustainable solution for auto-scaling Redis on Kubernetes without adding a controller like Maestro. Unfortunatly the project seems a bit dead.

What are some alternatives for autoscaling Redis ?

Edit: Redis is a statefull app.

Upvotes: 2

Views: 3075

Answers (2)

praveen bhawantha
praveen bhawantha

Reputation: 21

I have used bitnami helm chart to deploy redis-cluster version in kubernetes cluster. I created a HPA and the auto scaling up and the auto scaling down happen without any issue the only issue was the persistent storages that are getting created are not getting deleted automatically, I also created an issue for this as bitnami provides a HPA for redis-sentinel method.

https://github.com/bitnami/charts/issues/27897#issue-2402721006

Upvotes: 0

Grant David Bachman
Grant David Bachman

Reputation: 2248

If you want to autoscale anything on Kubernetes, it requires some type of controller. For general autoscaling, the community is rallying around the Horizontal Pod Autoscaler. By default, you configure it to scale based on CPU utilization.

If you want to scale based on metrics other than CPU utilization and you're using the Redis helm chart, you can easily configure it to run a Prometheus metric sidecar and can set the autoscaler to scale based on one of those values.

Upvotes: 1

Related Questions