Closed yeya24 closed 5 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
pkg/backend/kubeflow/pytorchjob.go | 0 | 5 | 0.0% | ||
pkg/backend/kubeflow/tfjob.go | 0 | 5 | 0.0% | ||
pkg/backend/kubeflow/generator/cm.go | 24 | 32 | 75.0% | ||
pkg/backend/kubeflow/generator/native.go | 24 | 32 | 75.0% | ||
pkg/resource/resource.go | 33 | 45 | 73.33% | ||
<!-- | Total: | 118 | 156 | 75.64% | --> |
Totals | |
---|---|
Change from base Build 48: | 3.9% |
Covered Lines: | 450 |
Relevant Lines: | 816 |
@gaocegege PTAL.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: gaocegege
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What this PR does / why we need it:
Add support for resource-limit. Currently only support cpu and memory.
There are two ways to set resource of one jobs.
For the first way, we can set config file like this.
For the second way, add two magic commands %cpu, %memory. Here is an example. By this config we can start a ps of 0.5 core and 0.5G, and a worker of 1c and 1G.
I dont know if it is a right way for this, I' d appreciate if you give me some advice. :smile:
Which issue(s) this PR is related to (optional, link to 3rd issue(s)):
Fixes #51
Special notes for your reviewer:
/cc @gaocegege
Release note: