-
Hi all, Maybe this is something basic and clear in the documentation but is there any way I can use the operators to preform auto-scaling on the application? Say for example you would like your replicas to fluctuate between 5 and 10 pods depending on the consumption. I use Strimzi in the context of Openshift and I know they have some sort of auto scaling capabilities, which I have not explored much, but at first glance I did not find anything in Strimzi about it so I wanted to ask about that. https://docs.openshift.com/container-platform/4.9/machine_management/applying-autoscaling.html If it's not possible, is there any plan of having that in the roadmap, or maybe it's really something that does not make sense in the context of Kafka, not sure... Thanks for any feedback, best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Auto-scaling Kafka is complicated. It usually cannot be done just based on some CPU utilization etc.
That said, the autoscaling you linked to is about autoscaling the Kubernetes cluster which is a different story. It is about adding or removing Kubernetes worker nodes and not about adding or removing pods which is what your question refers to at the beginning. This does not necessarily involve changing number of Kafka pods but depending on other applications, they might need to be moved between nodes to for example scale down the number of worker nodes. Strimzi in general does no have an issue with it. You should use the Strimzi Drain Cleaner to ensure the availability of the Kafka cluster during these events. But otherwise you should be fine. |
Beta Was this translation helpful? Give feedback.
Auto-scaling Kafka is complicated. It usually cannot be done just based on some CPU utilization etc.
scale
subresources to plug it into Kubernetes HPA and tools like KEDA. These are basically consumers and producers in …