-
Notifications
You must be signed in to change notification settings - Fork 38
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
WIP: Experimental k8s config (DO NOT MERGE) #356
Conversation
Summary of changes: - Modified code to use configuration parameter to specify number of CPUs. If not set, system value is taken. Signed-off-by: Ivan Chvets <[email protected]>
Summary of changes: - Modified code to use env vat to specify number of CPUs for generic scheduler. If not set, system value is taken. Signed-off-by: Ivan Chvets <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you want to tell the app to use X number of cores. This should be done through k8s or anything else during deployment. Then, let the app decide how to use them. The app already knows how many cores are available. This can lead to a problem where someone changing the number of cores in k8s has no effect in the app. This would only be useful if the container would report the wrong number of cores. And for this to be useful we would also need to specify affinity. I do nothing this is a good idea. If you want we can have a chat on this.
Fair enough. |
Is this real? I am shocked. So limiting anything in k8s means nothing be default? That's a new one for me. I did not know that. |
Well, container will be throttled and will be killed if it goes over memory limit, for example. But nothing prevents the app from creating more threads that there are cores (which is what is actually happening). But when app is oversubscribing, it is getting throttled and all those threads do not have chance to run. |
Closing. |
WIP: Exeprimental K8S config
Description
Configuration options for CPU resources for OWGW.
Summary of changes: