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

Support disk quotas #4

Merged
merged 8 commits into from
Jan 2, 2024
Merged

Support disk quotas #4

merged 8 commits into from
Jan 2, 2024

Conversation

ben-z
Copy link
Member

@ben-z ben-z commented Dec 4, 2023

This PR adds support for setting disk quotas using setquota.

Resolves #2

@ben-z ben-z force-pushed the benz/quotas branch 2 times, most recently from 7d879b2 to 7a40d02 Compare December 5, 2023 01:23
@ben-z
Copy link
Member Author

ben-z commented Dec 5, 2023

Ceph will probably be supported as a part of project quota, because it’s per directory, not per user.

@ben-z
Copy link
Member Author

ben-z commented Dec 5, 2023

In this project, user quota aren’t really overrides. They are just quotas. The override concept should only exist in the WATcloud configuration.

@ben-z ben-z marked this pull request as ready for review January 2, 2024 05:30
@ben-z ben-z merged commit 93dfb97 into main Jan 2, 2024
4 checks passed
@ben-z ben-z deleted the benz/quotas branch January 2, 2024 05:48
wato-github-automation bot pushed a commit to WATonomous/watcloud-website that referenced this pull request Jan 4, 2024
Resolves WATonomous/infra-config#948
Resolves
WATonomous/infra-config#619 (comment)
Requires
WATonomous/linux-directory-provisioner#2,
WATonomous/linux-directory-provisioner#4

Notes to self:
- [x] Should we just keep it simple and use one limit for both soft and
hard limit? Then the soft limit can be set as-is and the hard limit
would be the max between the default hard limit and the set limit? Or is
this too complicated and we should just have a 1-1 mapping between the
linux config and our config?
- keep it 1-1. So that we minimize the amount of logic in the
provisioning pipeline.
- [x] xfs default quota:
https://serverfault.com/questions/625049/does-xfs-support-default-quotas
- [ ] ~~Ceph quota~~ (deferred to a separate PR)
- [x] Documentation
- [x] Resolve TODOs in code
- [ ] ~~Expiration~~ (deferred to a separate PR)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support setting filesystem quotas
1 participant