[go: nahoru, domu]

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

[KEP-2400] Node memory swap support (replacement for inactive issue #2400) #4128

Closed
27 of 35 tasks
iholder101 opened this issue Jul 19, 2023 · 13 comments
Closed
27 of 35 tasks
Labels
sig/node Categorizes an issue or PR as relevant to SIG Node.

Comments

@iholder101
Copy link
Contributor
iholder101 commented Jul 19, 2023

This is a replacement issue for the outdated, inactive previous issue: #2400.

Enhancement Description

Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.

/sig node

@k8s-ci-robot k8s-ci-robot added the sig/node Categorizes an issue or PR as relevant to SIG Node. label Jul 19, 2023
@iholder101 iholder101 changed the title Node memory swap support per KEP2400 (replacement for inactive issue #2400) [KEP-2400] Node memory swap support (replacement for inactive issue #2400) Jul 19, 2023
@iholder101
Copy link
Contributor Author

@ffromani
Copy link
Contributor

/cc

@sftim
Copy link
Contributor
sftim commented Jul 24, 2023

I've given kubernetes/website#42009 a first pass review. I strongly recommend a security review of the documentation we're providing for this newly beta feature. Lots of clusters run with beta features enabled, and users may need to understand the risks.

@pacoxu
Copy link
Member
pacoxu commented Jul 24, 2023

I've given kubernetes/website#42009 a first pass review. I strongly recommend a security review of the documentation we're providing for this newly beta feature. Lots of clusters run with beta features enabled, and users may need to understand the risks.

This beta feature is a little special in that the default FG is off.

NodeSwap: {Default: false, PreRelease: featuregate.Beta},  // 1.28

@sftim
Copy link
Contributor
sftim commented Jul 24, 2023

As soon as it's beta, we can't assume that security-minded folk would disable it out of habit. Instead we really must review the advice to end users. Someone might take the graduation to beta as a signal that it's now safe to enable as documented.

@iholder101
Copy link
Contributor Author
iholder101 commented Jul 26, 2023

As soon as it's beta, we can't assume that security-minded folk would disable it out of habit. Instead we really must review the advice to end users. Someone might take the graduation to beta as a signal that it's now safe to enable as documented.

@sftim Bear in mind that Swap is disabled by default in Beta1, and that we address the security both in the KEP and in the documentation.

However, I agree we need to make sure we warn and guide the users correctly.

Thanks!

@SergeyKanzhelev
Copy link
Member

can we get back to working on #2400? Duplicating KEP issues is not working very well, lot's of confusion

@iholder101
Copy link
Contributor Author

can we get back to working on #2400? Duplicating KEP issues is not working very well, lot's of confusion

The problem with #2400 is that I'm not the owner, so can't edit it which leads to outdated confusing information.

IMO we should either close the previous issue and clearly link to this issue as the updated one, or somehow grant me edit access to the previous issue if possible. WDYT?

@pacoxu
Copy link
Member
pacoxu commented Sep 18, 2023

The problem with #2400 is that I'm not the owner, so can't edit it which leads to outdated confusing information.

I can do that for you. I think I have already updated recent updates on the Swap feature to the issue description of #2400.

@iholder101
Copy link
Contributor Author

The problem with #2400 is that I'm not the owner, so can't edit it which leads to outdated confusing information.

I can do that for you. I think I have already updated recent updates on the Swap feature to the issue description of #2400.

Thank you!
Do you mean that you can update the issue? Or also grant me edit rights (which is preferred)?

I see that the previous issue still contains outdated information. If you can't grant me edit rights, can you please copy-paste the description from this issue to the original one? Here's the description with all of the markdown tags:

This is a replacement issue for the outdated, inactive previous issue: https://github.com/kubernetes/enhancements/issues/2400.

# Enhancement Description
* One-line enhancement description (can be used as a release note): Kubernetes nodes support swap memory.
* Kubernetes Enhancement Proposal: https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2400-node-swap
* Discussion Link: https://docs.google.com/document/d/1CZtRtC8W8FwW_VWQLKP9DW_2H-hcLBcH9KBbukie67M/edit# [Kubelet/Kubernetes should work with Swap Enabled kubernetes#53533](https://github.com/kubernetes/kubernetes/issues/53533)
* Primary contact (assignee): @iholder101
* Responsible SIGs: Node
* Enhancement target (which target equals to which milestone):
  * Alpha release target (x.y): 1.22
  * Beta release target (x.y): 1.28
  * Stable release target (x.y):
* [x]  Alpha
  * [x]  KEP (`k/enhancements`) update PR(s): https://github.com/kubernetes/enhancements/pull/2602
  * [x]  Code (`k/k`) update PR(s):
    * [x]  CI/test infra changes: https://github.com/kubernetes/test-infra/pull/22602 https://github.com/kubernetes/test-infra/pull/22809
    * [x]  CRI and kubelet changes https://github.com/kubernetes/kubernetes/pull/102823
  * [x]  Docs (`k/website`) update PR(s): https://github.com/kubernetes/website/pull/28838
* [ ]  Beta1
  * [x]  KEP (`k/enhancements`) update PR(s):
    * [x]  https://github.com/kubernetes/enhancements/pull/2858
    * [x]  https://github.com/kubernetes/enhancements/pull/3957
  * [x]  Issues and Code (`k/k`) update PR(s):
    * Support cgroups v2 with auto-calculated LimitedSwap for Burstable QoS pods
      * [x]  https://github.com/kubernetes/kubernetes/issues/119427
      * [x]  https://github.com/kubernetes/kubernetes/issues/119428
      * [x]  https://github.com/kubernetes/kubernetes/pull/118764
    * [x] Add Swap stats to `/stats/summary` and `/metrics/resource`
      * [x]  https://github.com/kubernetes/kubernetes/issues/119425
      * [x]  https://github.com/kubernetes/kubernetes/pull/118865
    * [x] Determine a set of metrics for measuring node performance with swap enabled
      * [x]  https://github.com/kubernetes/kubernetes/issues/119424
      * [x]  https://github.com/kubernetes/kubernetes/pull/118865
      * [x]  https://github.com/google/cadvisor/pull/3339
    * [x] Improve test coverage and make sure tests are green
      * [x]  https://github.com/kubernetes/kubernetes/issues/119430
      * [x]  https://github.com/kubernetes/kubernetes/pull/118764
  * [ ]  Docs (`k/website`) update(s):
    * [ ] https://github.com/kubernetes/website/pull/42009
    * [X] https://github.com/kubernetes/website/pull/42167
  * [x] Misc
    * [x] https://github.com/google/cadvisor/pull/3293
    * [x] https://github.com/kubernetes/kubernetes/pull/119225
  * Archive / Outdated
* [ ]  Beta2
* [ ]  Future (related PRs, can be assigned to a specific track later)
  * Add the ability to set a system-reserved quantity of swap on a node
    * [ ]  https://github.com/kubernetes/kubernetes/issues/105019
    * [ ]  https://github.com/kubernetes/kubernetes/pull/105271
  * [ ] https://github.com/kubernetes/kubernetes/pull/119327

_Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently._

/sig node

@pacoxu
Copy link
Member
pacoxu commented Sep 18, 2023

Updated.

Sorry, I have no permission to grant you the permission. I will try to keep up with your steps and follow up on the feature. When there are any updates needed, you can ping me on GitHub or Slack.

@iholder101
Copy link
Contributor Author

Too bad Github doesn't have an issue-ownership-transfer feature :D
Thank you @pacoxu!

/close

@k8s-ci-robot
Copy link
Contributor

@iholder101: Closing this issue.

In response to this:

Too bad Github doesn't have an issue-ownership-transfer feature :D
Thank you @pacoxu!

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/node Categorizes an issue or PR as relevant to SIG Node.
Projects
None yet
Development

No branches or pull requests

6 participants