Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support float queryValue for MongoDB scaler #6574

Open
xiaok80s opened this issue Feb 27, 2025 · 0 comments
Open

Support float queryValue for MongoDB scaler #6574

xiaok80s opened this issue Feb 27, 2025 · 0 comments
Labels
feature-request All issues for new features that have not been committed to needs-discussion

Comments

@xiaok80s
Copy link

Proposal

Currently, the MongoDB scaler requires queryValue to be an integer. This feature request proposes adding support for floating-point values to allow more flexible query conditions.

Use-Case

I have a ScaledObject with minReplicaCount set to 1 and maxReplicaCount set to 10. My goal is to always maintain one idle pod whenever possible. Since idleReplicasCount doesn’t work in this case, I tried setting queryValue to 0.9 to keep the replica count one above the required amount. However, I found that queryValue does not support float values. I tested this with MSSQL and MySQL, and both allow float values for queryValue or targetValue.

Is this a feature you are interested in implementing yourself?

No

Anything else?

No response

@xiaok80s xiaok80s added feature-request All issues for new features that have not been committed to needs-discussion labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request All issues for new features that have not been committed to needs-discussion
Projects
Status: To Triage
Development

No branches or pull requests

1 participant