-
Notifications
You must be signed in to change notification settings - Fork 17
[irods/irods#4103] Add dedicated section about quotas (main) #404
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| # Quota Enforcement | ||
|
|
||
| iRODS offers two quota enforcement systems, [Physical Quotas](#physical-quotas) and [Logical Quotas](#logical-quotas). | ||
|
|
||
| ## Physical Quotas | ||
|
|
||
| This system is for enforcing quotas at the physical layer (i.e. storage resources). Physical quotas _(sometimes referred to as resource quotas)_ are always associated with a specific group and one or more storage resources. | ||
|
|
||
| ### How to enable | ||
|
|
||
| By default, physical quotas are disabled. To enable, open `/etc/irods/core.re` and change the argument passed to `msiSetRescQuotaPolicy()` from `"off"` to `"on"`. The line you modified should look very similar to the following. | ||
|
|
||
| ```py | ||
| acRescQuotaPolicy { msiSetRescQuotaPolicy("on"); } | ||
| ``` | ||
|
|
||
| Reload the server's configuration for the change to take effect. This is currently a per-server setting. If your zone consists of multiple servers, make sure to apply the change to all of them. | ||
|
|
||
| ### Applying a Quota | ||
|
|
||
| !!! Note | ||
| _User_ quotas are not supported by iRODS. However, they can be simulated through the use of _group_ quotas. See [Simulating User Quotas](../../administrators/policy_cookbook/#simulating-user-quotas) in the [Policy Cookbook](../../administrators/policy_cookbook) for more information. | ||
|
|
||
| To apply a quota, all that's needed is a group. | ||
|
|
||
| The following example sets a _group_ quota of 100000 bytes across all storage resources for the group named "quota_group". | ||
|
|
||
| ```sh | ||
| iadmin sgq quota_group total 100000 | ||
| ``` | ||
|
|
||
| The `total` keyword instructs iRODS to apply a global quota. Upon successfully setting the quota, all data associated with members of the "quota_group" will be counted toward the quota. | ||
|
|
||
| To apply a quota to a specific storage resource, replace the `total` keyword with the name of the storage resource. | ||
|
|
||
| See [iadmin sgq](../../icommands/administrator/#sgq) for more information. | ||
|
|
||
| ### Updating Quota Usage Totals | ||
|
|
||
| Quota usage tracking is passive. iRODS does not auto-update quota usage totals as data changes. Administrators must run `iadmin cu` or invoke the necessary API to instruct iRODS to recalculate usage totals. | ||
|
|
||
| The most common pattern for handling recalculation of quota usage totals is via a [cron](https://en.wikipedia.org/wiki/Cron) job. | ||
|
|
||
| See [iadmin cu](../../icommands/administrator/#cu) for more information. | ||
|
|
||
| ### Viewing Quota Information | ||
|
|
||
| Administrators can view quota information by running `iadmin lq`. `iquota` can be used to view quota information as well. | ||
|
|
||
| See [iadmin lq](../../icommands/administrator/#lq) and [iquota](../../icommands/user/#iquota) for more information. | ||
|
|
||
| ## Logical Quotas | ||
|
|
||
| This system is for enforcing quotas at the logical layer (i.e. collections and data objects). This is achieved through the use of the [Logical Quotas rule engine plugin](https://github.com/irods/irods_rule_engine_plugin_logical_quotas). | ||
|
|
||
| See the [README](https://github.com/irods/irods_rule_engine_plugin_logical_quotas) in the GitHub repository for more information. | ||
|
|
||
| ## Related Links | ||
|
|
||
| - [iadmin sgq](../../icommands/administrator/#sgq) | ||
| - [iadmin cu](../../icommands/administrator/#cu) | ||
| - [iadmin lq](../../icommands/administrator/#lq) | ||
| - [iquota](../../icommands/user/#iquota) | ||
| - [Logical Quotas rule engine plugin](https://github.com/irods/irods_rule_engine_plugin_logical_quotas) | ||
| - [Policy Cookbook: Simulating User Quotas](../../administrators/policy_cookbook/#simulating-user-quotas) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.