big size node memory cause metrics overflow #2541
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened:
I have a machine with big memory (about 10000TB size) will get a negative number in metrics. I found that the node metrics value do the convert as float64(val.MilliValue()) / 1000 before return. It may overflow when the value is bigger than maxInt64/1000.
What you expected to happen:
KSM will return the correct number even when the value is bigger than maxInt64/1000
How to reproduce it (as minimally and precisely as possible):
node memory size is larger than maxInt64/1000
Anything else we need to know?:
Environment:
kubectl version
):The text was updated successfully, but these errors were encountered: