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

When determining available memory and cores, take into account cgroup limits #905

Merged
merged 8 commits into from Dec 10, 2018

Conversation

notestaff
Copy link
Contributor

When determining available memory and cores, take into account cgroup limits, which are used e.g. by docker run's --cpus and --memory options. Currently we use memory and cores values for the host machine, not the container.

@notestaff notestaff self-assigned this Dec 10, 2018
@dpark01
Copy link
Member

dpark01 commented Dec 10, 2018

This is so much better, and thanks for deleting the hacky one-off scripts that kept reproducing themselves.

BTW, it's much more correct to compute for container shape than host shape, and we should definitely merge this in. But out of curiosity, what's the use case you're addressing, kubernetes clusters? (most dnax and papi use cases have container shape = host shape)

@notestaff
Copy link
Contributor Author

The use case is running large benchmarks on a single high-end instance with Cromwell's Local backend. E.g. running 200 rabies assemble_denovos this way costs under $8, vs. $238 on DNAnexus.

@notestaff notestaff merged commit 3122be6 into master Dec 10, 2018
notestaff added a commit that referenced this pull request Dec 10, 2018
is-better-handle-misassemblies : merged PR #905 (When determining
available memory and cores, take into account cgroup limits)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants