Reasons why OSS lifecycle rules do not take effect
Overview
You can use the PutBucketLifecycle API to set lifecycle rules for Alibaba Cloud Object Storage Service (OSS). Lifecycle rules help you manage data efficiently and reduce manual effort and storage costs. These rules can periodically transition infrequently accessed data to Infrequent Access (IA), Archive Storage, or Cold Archive storage classes. They can also delete data that you no longer need. Sometimes, a lifecycle rule does not take effect after you configure or modify it. This topic describes the possible reasons.
Details
After you create a lifecycle rule, OSS loads the rule within 24 hours. After the rule is loaded, OSS starts to execute it at 08:00 (UTC+8) every day. The execution is completed within 24 hours. An object's last modified time must be at least 24 hours before the rule's execution start time (08:00). You may need to wait for the rule to take effect. For example, consider a lifecycle rule that deletes an object one day after it is uploaded. If a file is uploaded on July 20, 2022, the deletion occurs as follows:
-
Files uploaded before 08:00 (UTC+8) are scheduled for deletion starting at 08:00 on July 21, 2022. The deletion is completed before 08:00 on July 22, 2022.
-
Files uploaded after 08:00 (UTC+8) are scheduled for deletion starting at 08:00 on July 22, 2022. The deletion is completed before 08:00 on July 23, 2022.
If the lifecycle rule still does not take effect after 48 hours, you can check your rule configuration. For more information, see Lifecycle configuration examples.
Updating a lifecycle rule aborts the lifecycle task for that day. Therefore, avoid updating lifecycle rules frequently.
Applies to
-
Object Storage Service (OSS)