-
Notifications
You must be signed in to change notification settings - Fork 253
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
Swap support #1584
Comments
Thanks @kannon92 for bringing this up. I think this would be a really good enhancement for NFD. We cannot do |
So I’m happy to contribute! so as I posted this I realize /proc/swaps is probably the correct path. I was thinking I could add this to memory in source/memory. So would I open /proc/swaps and detect if swap is enabled by parsing that file? And would swap be considered an attribute or a feature? |
Yes, I'm not aware of anything better, either
👍 I think that would be the logical place for it
That would be it
I think We could target NFD v0.16 which we've been planning to release before the end of March. |
@marquiz: The provided milestone is not valid for this repository. Milestones in this repository: [ Use In response to this:
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. |
/milestone v0.16 |
Can you point me where you expect this change to be? |
In this repo we have Helm: |
What would you like to be added:
I am working on kubernetes/enhancements#2400 which adds swap support. I think that this project could be a good fit for labeling nodes if they have swap enabled.
Why is this needed:
Swap is an important characteristic of a node and it is usually turned off. We are introducing ways for heterogenous nodes for swap so we should have a label for a swap enabled node.
I think the implementation could just check
swapon
and verify that swap is enabled on the node.The text was updated successfully, but these errors were encountered: