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

[Algoithm] CPU request recommandation detail calculation #348

Open
mwilfried opened this issue Oct 10, 2024 · 3 comments
Open

[Algoithm] CPU request recommandation detail calculation #348

mwilfried opened this issue Oct 10, 2024 · 3 comments

Comments

@mwilfried
Copy link

Describe the bug
Sorry, it's not a bug but much more a request for more explanations about the request recommendations. The documentation says

For CPU, we set a request at the 95th percentile with no limit. Meaning, in 95% of the cases, your CPU request will be sufficient. For the remaining 5%, we set no limit. This means your pod can burst and use any CPU available on the node - e.g. CPU that other pods requested but aren’t using right now.

I understand that if my pod has one container, and consumes 1 core, the request recommendation will be to set a cpu request of 50m ? Is that right ?

Could you explicit a little bit more how the CPU Request recommendation is calculating by giving some examples. It would be very helpful

Regards

@aantn
Copy link
Contributor

aantn commented Oct 10, 2024

Hi @mwilfried, we set the CPU to the 95th percentile of usage. Meaning, if your pod consumed 1 core constantly, we would set a request of 1 core (1000m) as the 95th percentile of constant 1 core usage is 1 core.

If 95% of the time your pod used half a core (500m) or under, but 5% of the time it spiked to 1 full core, we would set 500m as that is the 95th percentile value.

Does that help?

@mwilfried
Copy link
Author

mwilfried commented Oct 10, 2024

Hi @aantn

thank you for your reply.
"95th percentile of usage" ==> on other words, it's an average of usage for 95% of time for a period, am I right ?

Yes more clear, thank you

@aantn
Copy link
Contributor

aantn commented Oct 12, 2024

Close! It's the "the maximum value 95% of the time".

See https://simple.wikipedia.org/wiki/Percentile for more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants