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

[release-4.16] Enable swap on the node #924

Open
wants to merge 1 commit into
base: release-4.16
Choose a base branch
from

Commits on Jun 25, 2024

  1. Enable swap on the node

    After switching to OVN-K we observed increase in memory resource and one
    way to tackle it to have swap enabled on the node.
    
    This PR is try to do following.
    - Enable only `NodeSwap` feature gate instead complete Tech preview
      features.
         - https://docs.openshift.com/container-platform/4.15/rest_api/config_apis/featuregate-config-openshift-io-v1.html
    - Add `swapaccount=1` to kernel argument which is required for the swap
        - https://docs.openshift.com/container-platform/4.15/nodes/nodes/nodes-nodes-managing.html#nodes-nodes-swap-memory_nodes-nodes-managing
    - Add swap feature to kubelet config
    - Add systemd unit file to create swap and enable it
    - Extend the disk size by 4GB because that much of space used for swap
    praveenkumar committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    b46ff5b View commit details
    Browse the repository at this point in the history