Skip to content

Moving swap options into ResourceRequirements instead of ContainerSpecs#2816

Merged
anshulpundir merged 2 commits intomoby:masterfrom
wk8:wk8/swap_follow_up
Feb 7, 2019
Merged

Moving swap options into ResourceRequirements instead of ContainerSpecs#2816
anshulpundir merged 2 commits intomoby:masterfrom
wk8:wk8/swap_follow_up

Conversation

@wk8
Copy link
Contributor

@wk8 wk8 commented Feb 6, 2019

It has been decided when discussing moby/moby#37872
that swap options should progressively be moved to existing structs
meant to limit resource usage, and that the new field for swap should hold
the swap size itself, instead of the swap size + the memory.

This patch is a pre-req to unblock moby/moby#37872
in the light of the new design.

Removing the 2 fields from ContainerSpec proto messages shouldn't be an
issue as these were never used in practice.

…Spec`s

It has been decided when discussing moby/moby#37872
that swap options should progressively be moved to existing structs
meant to limit resource usage, and that the new field for swap should hold
the swap size itself, instead of the swap size + the memory.

This patch is a pre-req to unblock moby/moby#37872
in the light of the new design.

Removing the 2 fields from `ContainerSpec` proto messages shouldn't be an
issue as these were never used in practice.

Signed-off-by: Jean Rouge <[email protected]>
@codecov
Copy link

codecov bot commented Feb 6, 2019

Codecov Report

Merging #2816 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2816      +/-   ##
==========================================
- Coverage   61.95%   61.94%   -0.01%     
==========================================
  Files         137      137              
  Lines       22107    22107              
==========================================
- Hits        13696    13694       -2     
- Misses       6938     6939       +1     
- Partials     1473     1474       +1

@wk8
Copy link
Contributor Author

wk8 commented Feb 6, 2019

@thaJeztah : just to double check before I update moby/moby#37872 accordingly, is this in accordance with what we discussed on there? Thank you :) !

@thaJeztah
Copy link
Member

Sorry for the delayed response, I was on PTO for some days; adding this to today's maintainers meeting to double check 👍

@wk8
Copy link
Contributor Author

wk8 commented Feb 7, 2019

Discussed in moby's maintainers' meetings, and looks good to people there. @anshulpundir @dperny could you please have a look? Thanks!

Signed-off-by: Jean Rouge <[email protected]>
@anshulpundir anshulpundir merged commit 6894bde into moby:master Feb 7, 2019
@wk8
Copy link
Contributor Author

wk8 commented Feb 7, 2019

Thanks!

wk8 added a commit to wk8/moby that referenced this pull request Mar 14, 2019
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 6, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 7, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 7, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 8, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 8, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 8, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 9, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 13, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 17, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 17, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 17, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
dperny pushed a commit to dperny/docker that referenced this pull request Oct 20, 2025
With integration tests

Relevant Swarmkit PR: moby/swarmkit#2816
(updated the vendored version of Swarkit to that)

Signed-off-by: Jean Rouge <[email protected]>

Updated for latest master, fixed bitrot.

Signed-off-by: Drew Erny <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants