crane icon indicating copy to clipboard operation
crane copied to clipboard

ehpa supports predict with custom metrics

Open whitebear009 opened this issue 3 years ago • 3 comments

Describe the feature

ehpa only supports predict with pod cpu currently. Can we support predict with custom metrics ?

whitebear009 avatar Apr 30 '22 08:04 whitebear009

Are you interest on this feature? If so, would you please describe your requirements ?

qmhu avatar May 05 '22 03:05 qmhu

Yes, I'm honored to introduce it. In our scenario, our HPA mainly use custom metrics such as QPS and queue length (based on the internal task scheduling framework) in addition to CPU. These metrics are just as periodic as the cpu metrics. I took a cursory look at the code implementation, and if I want to support the prediction of these custom metrics, I can only hardcode it into the project. So can we support the prediction of these custom metrics by configuration or adapter for users? To keep the community updated, I don't want to hardcode.

whitebear009 avatar May 05 '22 03:05 whitebear009

@whitebear009 Glad to hear it.

Would you please join crane's wechat group and discuss it in that.

qmhu avatar May 05 '22 06:05 qmhu