Updated on 2022-08-12 GMT+08:00

Managing a Tenant Directory

Scenario

The administrator manages the HDFS storage directory used by a specified tenant on FusionInsight Manager based on service requirements. The management operations include adding tenant directories, modifying quantity quotas of files and directories, and storage space quota of the directory, and deleting directories.

Prerequisites

Tenants with HDFS storage resources are added.

Procedure

View a tenant directory.

  1. On FusionInsight Manager, click Tenant Resources.
  2. In the tenant list on the left, click a target tenant.
  3. Click Resource.
  4. View the HDFS Storage table.

    • The Quota column indicates quantity quotas of files and directories.
    • The Space Quota column indicates storage space sizes of tenant directories.

Add a tenant directory.

  1. On FusionInsight Manager, click Tenant Resources.
  2. In the tenant list on the left, click the tenant whose HDFS storage directory needs to be changed.
  3. Click Resource.
  4. In the HDFS Storage table, click Create Directory.

    • The Parent Directory indicates the storage directory of the parent tenant corresponding to the current tenant.

      This parameter is not displayed if the current tenant is not a sub-tenant.

    • Set Path to a tenant directory path.

      If the current tenant is not a sub-tenant, the new path is created in the HDFS root directory.

    • Set Quota to the quotas of file and directory quantity.
    • File Number Threshold (%) takes effect only when Quota is specified. If the ratio of the number of used files to the value of Quota exceeds the value of this threshold, an alarm is generated. If this parameter is not specified, no alarm is reported in this scenario.

      The number of used files is collected every hour. Therefore, the alarm indicating that the file number exceeds the threshold is delayed.

    • Set Space Quota to storage space sizes of tenant directories.
    • Storage Space Threshold (%): If the ratio of used storage space to the value of Space Quota exceeds the value of this parameter, an alarm is generated. If this parameter is not specified, no alarm is generated in this scenario.

      The used storage space is collected every hour. Therefore, the alarm indicating that the storage space exceeds the threshold is delayed.

  5. Click OK.

Modify a tenant directory properties.

  1. On FusionInsight Manager, click Tenant Resources.
  2. In the tenant list on the left, click the tenant whose HDFS storage directory needs to be changed.
  3. Click Resource.
  4. In the HDFS Storage table, click Modify in the Operation column of the specified tenant directory.

    • Set Quota to the quotas of file and directory quantity.
    • File Number Threshold (%) takes effect only when Quota is specified. If the ratio of the number of used files to the value of Quota exceeds the value of this threshold, an alarm is generated. If this parameter is not specified, no alarm is reported in this scenario.
    • Set Space Quota to storage space sizes of tenant directories.
    • Storage Space Threshold (%): If the ratio of used storage space to the value of Space Quota exceeds the value of this parameter, an alarm is generated. If this parameter is not specified, no alarm is generated in this scenario.

  5. Click OK.

Delete tenant directory.

  1. On FusionInsight Manager, click Tenant Resources.
  2. In the tenant list on the left, click the tenant whose HDFS storage directory needs to be changed.
  3. Click Resource.
  4. In the HDFS Storage table, click Delete in the Operation column of the specified tenant directory.

    The tenant directory that is created by the system during tenant creation cannot be deleted.

  5. Click OK.