Storage Quotas for Collections
Please note that this is a new and still experimental feature (as of Dataverse v6.1 release).
Instance admins can now define storage quota limits for specific collections. These limits can be set, changed and/or deleted via the provided APIs (please see the Update Collection Input Levels section of the Native API guide). The Read version of the API is available to the individual collection admins (i.e., a collection owner can check on the quota configured for their collection), but only superusers can set, change or disable storage quotas.
Storage quotas are inherited by subcollections. In other words, when storage use limit is set for a specific collection, it applies to all the datasets immediately under it and in its sub-collections, unless different quotas are defined there and so on. Each file added to any dataset in that hierarchy counts for the purposes of the quota limit defined for the top collection. A storage quota defined on a child sub-collection overrides whatever quota that may be defined on the parent, or inherited from an ancestor.
For example, a collection A
has the storage quota set to 10GB. It has 3 sub-collections, B
, C
and D
. Users can keep uploading files into the datasets anywhere in this hierarchy until the combined size of 10GB is reached between them. However, if an admin has reasons to limit one of the sub-collections, B
to 3GB only, that quota can be explicitly set there. This both limits the growth of B
to 3GB, and also guarantees that allocation to it. I.e. the contributors to collection B
will be able to keep adding data until the 3GB limit is reached, even after the parent collection A
reaches the combined 10GB limit (at which point A
and all its subcollections except for B
will become read-only).
We do not yet know whether this is going to be a popular, or needed use case - a child collection quota that is different from the quota it inherits from a parent. It is likely that for many instances it will be sufficient to be able to define quotas for collections and have them apply to all the child objects underneath. We will examine the response to this feature and consider making adjustments to this scheme based on it. We are already considering introducing other types of quotas, such as limits by users or specific storage volumes.
Please note that only the sizes of the main datafiles and the archival tab-delimited format versions, as produced by the ingest process are counted for the purposes of enforcing the limits. Automatically generated “auxiliary” files, such as rescaled image thumbnails and metadata exports for datasets are not.
When quotas are set and enforced, the users will be informed of the remaining storage allocation on the file upload page together with other upload and processing limits.
Part of the new and experimental nature of this feature is that we don’t know for the fact yet how well it will function in real life on a very busy production system, despite our best efforts to test it prior to the release. One specific issue is having to update the recorded storage use for every parent collection of the given dataset whenever new files are added. This includes updating the combined size of the root, top collection - which will need to be updated after every file upload. In an unlikely case that this will start causing problems with race conditions and database update conflicts, it is possible to disable these updates (and thus disable the storage quotas feature), by setting the dataverse.storageuse.disable-storageuse-increments JVM setting to true.