Priorities of lifecycle rules
This topic describes the priorities of lifecycle rules if the lifecycle rules direct Object Storage Service (OSS) to delete and convert the storage class of the same set of objects at the same time. This topic also provides an example on which lifecycle rule takes effect if multiple lifecycle rules are configured.
Usage notes
You can configure multiple lifecycle rules for a bucket. When lifecycle rules are executed, different rules do not affect each other. A single object may match multiple lifecycle rules. OSS determines the final action that is performed on the object based on the match results of all lifecycle rules.
Priorities
If multiple lifecycle rules direct OSS to delete and convert the storage class of the same set of objects at the same time, OSS executes the lifecycle rules based on the following priorities, regardless of the minimum storage duration and minimum storage size:
Delete objects > Convert to Deep Cold Archive > Convert to Cold Archive > Convert to Archive > Convert to IA > Convert from IA to Standard due to recent access
For information about the fees incurred when you use lifecycle rules to convert the storage class of objects or delete objects, see Lifecycle Fees.
Example
You specified the following lifecycle rules and the rules apply to the same set of objects:
-
Rule 1: Specify that objects that are last modified for more than 365 days are converted to IA objects.
-
Rule 2: Specify that objects that are last modified for more than 365 days are deleted.
Execution result: The objects that match the rules are deleted after the objects are last modified for more than 365 days.