You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would like to be able to use "QueueLength" metric type for the Kafka scaler, instead of "LagOffset" as it is now.
This would be useful for HPA and for anyone who isn't trying to scale on a lag value.
Use-Case
Similar to #1314
We want to be able to have access to QueueLength in the KafkaScaler as an option.
For our use case we want to scale replicas on the total amount of messages in the queue instead of the current "lagOffset".
Want to have min replicas set to 0, so it will have 0 replicas when queue is empty, but as soon as the queue for ex contains 1 to 300 messages it should scale to 1 replica, and between 300-600 it should scale to 2 replicas and so on.
I'd like to help with this if someone isn't already working on this for kafka.
Anything else?
Related to : #1314 (rabbitMQ implementation of this) #692 (This would be benefit from this feature I believe)
I'd prefer some umbrella issue where we can track this effort, because imho it should be done for all scalers.
Is there an umbrella issue I can tag this one onto ?
Discussed this with @knepe and he is willing to contribute this for Rabbit MQ scaler 🎉
We will do the POC on Kafka and then follow up with other scalers.
I am not sure if I fully understand your request. IMHO there are mutliple different features/concepts mixed in this.
Kafka & queueLength - is that even something that could be pulled from Kafka as a metric?
Want to have min replicas set to 0, so it will have 0 replicas when queue is empty, but as soon as the queue for ex contains 1 to 300 messages it should scale to 1 replica, and between 300-600 it should scale to 2 replicas and so on."
Proposal
Would like to be able to use "QueueLength" metric type for the Kafka scaler, instead of "LagOffset" as it is now.
This would be useful for HPA and for anyone who isn't trying to scale on a lag value.
Use-Case
Similar to #1314
We want to be able to have access to QueueLength in the KafkaScaler as an option.
For our use case we want to scale replicas on the total amount of messages in the queue instead of the current "lagOffset".
Want to have min replicas set to 0, so it will have 0 replicas when queue is empty, but as soon as the queue for ex contains 1 to 300 messages it should scale to 1 replica, and between 300-600 it should scale to 2 replicas and so on.
I'd like to help with this if someone isn't already working on this for kafka.
Anything else?
Related to : #1314 (rabbitMQ implementation of this) #692 (This would be benefit from this feature I believe)
Originally posted by @zroubalik in #1314 (comment)
Is there an umbrella issue I can tag this one onto ?
Originally posted by @zroubalik in #692 (comment)
Is there a POC on kafka ? or is this something I can help with in the future when I have capacity.
The text was updated successfully, but these errors were encountered: