主权项 |
1. A method comprising:
creating a global tenant identifier for a tenant of a multi-tenant distributed file system that is distributed over a plurality of storage servers; causing, by a processing device, the plurality of storage servers to create local tenant identifiers for the tenant of the multi-tenant distributed file system, the plurality of storage servers having underlying local file systems that interface with the multi-tenant distributed file system, wherein each storage server of the plurality of storage servers comprises one or more distinct directories for the tenant in the local file system of the storage server and one or more distinct local tenant identifiers for the tenant that are associated with the one or more distinct directories; mapping, by the processing device, the global tenant identifier to the local tenant identifiers; assigning, by the processing device, a global storage quota to the tenant; dividing, by the processing device, the global storage quota into a plurality of local storage quotas; assigning a local storage quota of the plurality of local storage quotas to each storage server of the plurality of storage servers; and creating, for the tenant, a volume comprising the one or more distinct directories in view of identification of the one or more distinct local tenant identifiers for the tenant that are associated with the one or more distinct directories. |