scylladb / scylla-machine-image

Apache License 2.0
19 stars 26 forks source link

Azure swap size calculation is not correct #428

Closed syuu1228 closed 1 year ago

syuu1228 commented 1 year ago

Since our swap setup code is initially written for AMI and GCE, swap file size is harf of rootfs. However, on Azure we use "Resource Disk" partition (/mnt) to store swap file, it's not on rootfs, so probably we should not use half_of_diskfree() for Azure. Since we don't use /mnt other purpose, I think we can just use 100% of the disk space. Or maybe we can re-format it as swap partition if it's possible.