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

How to allocate dedicated CPU core to a analytics pod? #800

Open
divdaisymuffin opened this issue Nov 23, 2021 · 2 comments
Open

How to allocate dedicated CPU core to a analytics pod? #800

divdaisymuffin opened this issue Nov 23, 2021 · 2 comments

Comments

@divdaisymuffin
Copy link

Hi @nnshah1 @xwu2git

We want to run analytics pod on a dedicated CPU core, for that we have alraedy tried by putting CPU limit in analytics.yaml but that is actually limiting the 1000m use of total CPU cores not dedicating a single core, Please check the attached yaml changes we have done

resources: limits: cpu: "1" requests: cpu: "1"

We have also explored that via docker we can give arguments like '--cpuset' but I am not able to as the dockerfiles do not support it,
So please suggest how we can achieve this?

@divdaisymuffin
Copy link
Author

@nnshah1 Please suggest the configuration that we need to do in pipeline.json to restrict the number of threads.

@xwu2git
Copy link
Collaborator

xwu2git commented Nov 26, 2021

You can probably modify the CMD command to run the code within the container as taskset to certain CPU ranges.
Also check if this applies to your case.

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