User Quota #2423

Closed
opened 2015-05-16 10:38:59 +00:00 by communitycube · 2 comments
communitycube commented 2015-05-16 10:38:59 +00:00
Owner

In certain networks can be usefull to not allow users upload, more files than the space that they're sharing.

Quota management will be handled by the StorageClient, which imposes the limits on what can be uploaded to the grid. When a file is to be uploaded, the StorageClient:

1- Checks that the storage server is running and writable

2- Calculates the space it is sharing in the associated storage server.

a- Available disk space

b- Reserved disk space (minimum free space to be reserved)

c- Size of stored shares

3- The size of leases it holds on files stored on grid (requires a catalog of uploaded files and lease expiration/renewal tracking).

4- Estimates the assigned space as 'Sharing space (available + stored shares)'

5- Checks that Used space (i.e. sum of leases) is smaller than 'Sharing space'.

6- Retrieve the grid's “X out K” parameters used in erasure encoding.

7- Verifies that predicted used space and reports an error if the available quota is exceeded.

In certain networks can be usefull to not allow users upload, more files than the space that they're sharing. Quota management will be handled by the [StorageClient](wiki/StorageClient), which imposes the limits on what can be uploaded to the grid. When a file is to be uploaded, the [StorageClient](wiki/StorageClient): 1- Checks that the storage server is running and writable 2- Calculates the space it is sharing in the associated storage server. > a- Available disk space > b- Reserved disk space (minimum free space to be reserved) > c- Size of stored shares 3- The size of leases it holds on files stored on grid (requires a catalog of uploaded files and lease expiration/renewal tracking). 4- Estimates the assigned space as 'Sharing space (available + stored shares)' 5- Checks that Used space (i.e. sum of leases) is smaller than 'Sharing space'. 6- Retrieve the grid's “X out K” parameters used in erasure encoding. 7- Verifies that predicted used space and reports an error if the available quota is exceeded.
tahoe-lafs added the
unknown
normal
enhancement
1.10.0
labels 2015-05-16 10:38:59 +00:00
tahoe-lafs added this to the undecided milestone 2015-05-16 10:38:59 +00:00
PRabahy commented 2015-05-16 13:51:47 +00:00
Author
Owner

Related to #1836 and #295. (Possibly could be considered a dupe)

Related to #1836 and #295. (Possibly could be considered a dupe)

This feature needs to fit into a bigger picture that considers how clients are identified on a grid, how their storage usage is tracked, and how limits on that usage might be determined and enforced.

As a stand-alone, it doesn't make sense. Also, whatever StorageClient was no longer seems to exist in the code base. It sounds like something that might exist in a client node but it doesn't make sense to enforce quotas in the client (since a client can then just choose not to enforce them).

There are lots of other tickets and content in the docs and on the wiki (eg https://tahoe-lafs.org/trac/tahoe-lafs/wiki/NewAccountingDesign) about this kind of usage tracking. I'm going to close this in favor of all that.

This feature needs to fit into a bigger picture that considers how clients are identified on a grid, how their storage usage is tracked, and how limits on that usage might be determined and enforced. As a stand-alone, it doesn't make sense. Also, whatever `StorageClient` was no longer seems to exist in the code base. It sounds like something that might exist in a client node but it doesn't make sense to enforce quotas in the client (since a client can then just choose not to enforce them). There are lots of other tickets and content in the docs and on the wiki (eg <https://tahoe-lafs.org/trac/tahoe-lafs/wiki/NewAccountingDesign>) about this kind of usage tracking. I'm going to close this in favor of all that.
exarkun added the
duplicate
label 2020-01-20 21:00:48 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#2423
No description provided.