-
Notifications
You must be signed in to change notification settings - Fork 61
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
HostPath does not enforce quotas #13
Comments
Started experimenting with the feature of creating a sparse file within the hostpath to enforce quota. (inline with what Rawfile Local Pv does). The PV spec will be changed to:
The above results in Kubelet rejecting to mount the device with the following error:
Need to figure out if I can easily convert the sparse file into a block device. The current code is located at: https://github.com/kmova/dynamic-localpv-provisioner/tree/enforce-quota |
Thanks! I'll see if I can help in any way. I doubt it, but I'd like to learn how to set up a dev environment for this anyway because we may be using it heavily. One thing that comes to mind is to use |
Another related question with hostpath, which filesystem do you plan to use - xfs, ext4 or anything else. Specifically, would it be ok to use XFS - as there is a possibility of using set quota on top of XFS. |
I prefer using XFS only |
I use XFS only as well. |
This feature also needs to account for
This feature needs a good implementation of generating unique xfs project ids per node, that are also unique across clusters in cases the PVs are migrated/merged onto same node. |
Hi, I have submitted an application and excited to work on this. 😄 |
Implementation notes: Prerequisites:
In both of the above cases, the solution needs to take care of finding a unique project id to be associated with a given volume. Also for inspiration on how to set XFS project quota you can check the following: |
@kmova |
@jshin47 Hostpath now supports enforcing quota for xfs fs in OpenEBS 3.0 release. Please check the latest release and if everything seems good to you can you close this issue? |
@Ab-hishek Thank you so much! We will test in the next week or so and confirm it works. Thanks again, this will be so helpful! |
This feature seems to be working fine. Many users have already started using this feature and it works fine. Therefore closing the issue. |
Openebs hostpath now support volume resize? |
@Icedroid No, its not exactly resize. The quotas(supported for xfs file systems only to be precise) limits the amount of storage hostpath volumes can consume instead of using the entire underlying storage. |
Could support be added for BTRFS as well? BTRFS support quotas via subvolumes and has easy volume snapshots. |
OpenEBS LocalPV HostPath do not enforce quotas
This is a known limitation of OpenEBS LocalPV HostPath, but it's one that seriously limits its usefulness in production.
I'd like for OpenEBS LocalPV HostPath to collect disk usage stats and render pods unscheduleable when they exceed quotas
I know this is not as straight forward as it sounds, but I'd like to make OpenEBS HostPath render pods unschedulable when quotas are exceeded. For existing pods, I'd like to kill them if they are exceeding quotas. For pods to be scheduled, I'd like for this quota to be enforced in advance.
Anything else you would like to add:
I know this is a roadmap feature.
The text was updated successfully, but these errors were encountered: