-
Notifications
You must be signed in to change notification settings - Fork 164
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
replace quota floor with ceil #68
base: master
Are you sure you want to change the base?
Conversation
anybody? |
Hey @to6ka, I'm not a maintainer, but:
I suspect the maintainers would be more open to an option to supply a custom |
Yes. By default we should keep floor, but we're open to exposing an option that can change this behavior. |
Thanks for your feedback. As i see this change is really old, It may be too late for discussion, but i have 2 points against it:
At now i have situation with service having quota 2.9 in kubernetes. I just want to say that this behavior is not obvious and it might be worth revisiting. |
Thanks for the feedback.
Agreed that this can be confusing. I can add docs on the default behavior to keep things more clear. Also we're open to introducing options to make this configurable as I've mentioned previously.
Consider a situation where you have three processes that makes use of quota, say at 1.6. As a user, you expect them to take up "4.8" cores. But if ceil is used, we will end up allocating 2 cores each, and end up with 6 total cores, which exceeds the expected threshold by a whole core. |
It will try to use 2 cores, but will not succeed, because of system scheduler and quota, and it will be thrrottled finally. I thought all libs tuned for maximum throughput by defaullt. And i am expecting this. If you need something else - you are making additional moves, using options, etc. This situation is really weird for me: lib is designed to better fit my app with my resources, and it prevents me from using resources.
option is ok, but it is changing the whole way of using the lib. |
Also my case was mentioned in original thread) I understand that nobody wants to change default behavior at this point. Thank you for this discussion) |
@to6ka Thanks for having a look at this issue. Any updates on adding an option to use |
Hi, i have some code, but unfortunately i was busy to end it Also new usage way is more complicated than just simple import, and most people will use old way or default options with old behavior, which is buggy as you know But i will try to end it soon Offtop: |
hi, i have the case with quota 2.9
so i think the proper way is to set max procs to 3, instead of 2