Lifecycle Management

The application scenarios and main functions of lifecycle management for PFS is consistent with those of OBS. For more information, see Lifecycle Management. For details about the SDK reference for lifecycle management, see SDK Overview.

Differences from the Object Lifecycle Management

  • You can use the lifecycle management function to manage files. Lifecycle management cannot transition a folder to the Archive storage class, but it can delete an empty folder upon expiration.
  • You can configure lifecycle rules over APIs to automatically delete files upon expiration or transition files to the Archive or Infrequent Access storage class. Currently, OBS Console allows only deletion upon expiration and transition to the Archive storage class. PFS does not support the versioning function. Therefore, lifecycle rules (deletion upon expiration, transition to the Archive or Infrequent Access storage class) are not applicable to historical versions of files.
  • If the direct reading function is enabled for a parallel file system, you can directly read files stored in the Archive storage class.
  • For a parallel file system, you can configure up to 20 lifecycle rules.
  • A lifecycle rule adjusts its baseline time in line with the latest update time of the applicable files.

Note:

  • If you rename a file or a folder, and the renamed file or files in the renamed folder meet the requirements of a lifecycle rule, the baseline time of the lifecycle rule will be the time when the content data of the files is lastly updated, instead of the rename time. In addition, the effective time of the lifecycle rule may be delayed for 0 to 7 days.
  • For a copied file on a client, the lifecycle rule determines its expiration time or time for transition to the Archive storage class according to time when the file is copied.
    • For example, the src.txt file was created on January 1, 2019, and it is copied to the des.txt file by running the cp -a src.txt des.txt command on September 1, 2019. Then the lifecycle rule calculates the expiration time or transition time of the copied file from September 1, 2019.