-
Notifications
You must be signed in to change notification settings - Fork 33
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
Disable swap and allow enabling using a settings file/Minishift command #205
Comments
I am also interested how the older version of OpenShift perform when the swap is disabled, if they work as expected then we might disable it permanently without putting another script to enable it. |
Below is what we have as part of available partitions.
|
@praveenkumar not so sure about this... I remember having seen a ton of OOM errors before when the swap did NOT mount on a restart. |
@gbraad Ack, I will hold it till we can test out 3.9.0 bits (currently downloading those bits are not working from release page). |
The change is just that the kubelet now refuses to start when swap is enabled. But I don't think anything else has changed, practically speaking, with v3.8. The logic behind this is for real cluster usage, you don't want to be swapping; you want to allocate pods with an accurate idea of the resources available to actually run and use memory pressure to affect scheduling pods accordingly. That's kind of irrelevant on a single-node test cluster, so it might be valid to simply configure the kubelet to start anyway when swap is disabled. On the other hand, if you're getting OOMs without swap enabled, maybe that's a sign you really do need more real memory as a default for the VM instead of swap. Whatever the outcome is, IMHO there's no need to have different defaults for v3.6 vs v3.8+. |
However, if no different defaults it means we have to deploy v3.8 with
skipping the swap check.
|
It seems that with later versions of OpenShift, swap needs to be disabled. See: minishift/minishift#1922 (comment)
This means that
handle-user-data
should not performswapon
, However, we should allow Minishift to change this behaviour... for instance by setting a config file/mnt/sda1/minishift/instanceconfig
which contains aENABLESWAP=true
option, and a way to trigger this part with a script or command, much likehandle-user-data
and/orset-ipaddress
does.The text was updated successfully, but these errors were encountered: