Using lifecycle policy

Prev Next

Available in Classic and VPC

NAVER Cloud Platform provides a lifecycle policy feature that allows an object to be deleted automatically or transferred to Archive Storage according to the storage period.
Data that are frequently used will be stored in Object Storage for fast input and output, and data that needs to be used for regulation response and post-analysis can be transferred to Archive Storage for long-term storage. By transferring data accordingly, the Total Cost of Ownership (TCO) will be reduced and systematic data management is possible.

  • The lifecycle policy feature has no additional charges.
  • You cannot apply a lifecycle policy to buckets with encryption settings (KMS).
  • You must apply for Archive Storage use to allow automatic data transfer when setting the lifecycle policy. For more information on Archive Storage, see Services > Storage > Archive Storage.
  • When automatically transferring to Archive Storage, the transfer may fail due to object naming restrictions (over 215 bytes, slash (/) duplicate).
  • Objects with SSE-C settings cannot use the Archive Storage transfer feature.
  • WORM buckets cannot be transferred.
  • Data transfer may be delayed depending on the infrastructure situation.
  • Overwriting a previous file is not supported in the lifecycle policy, so the object from the Object Storage will not be changed when transferred to the Archive Storage.
Note

The Archive Storage transfer feature is only supported in Korea Region. Only Delete upon expiration feature is available in the remaining Regions.

Caution

If a single bucket (Object Storage) contains more than 1 million objects, transferring them to a single container (Archive Storage) may cause the lifecycle policy to malfunction. To ensure that the number of objects in a single container (Archive Storage) does not exceed one million, separate the policy based on prefixes and distribute the transfer across multiple target containers (Archive Storage).

Lifecycle Management Interface

The Lifecycle Management interface description:

objectstorage-use-lifecycle_screen_ko

Component Description
① Menu name Current menu name.
② Basic features Add a lifecycle policy, view Object Storage details, and refresh Lifecycle Management.
③ Post-creation features Deletes, restarts, and stops the lifecycle policy.
④ List of lifecycle policies Lifecycle policy list and information

List of lifecycle policies

You can view the information on each policy in the lifecycle policies list. To view the information:

Note
  • You can view a list when there is more than one lifecycle policy. If there are no lifecycle policies created, a list will not show on the Lifecycle Management interface.
  • Some items in the list may not be displayed depending on your Region.
  1. On the NAVER Cloud Platform console, navigate to i_menu > Services > Storage > Object Storage.
  2. Select Lifecycle Management.
  3. View the information on each policy in the list.
    objectstorage-use-lifecycle_list_ko
    • Lifecycle policy
      • Policy type: Type of lifecycle policy.
      • Time of application: Time when the lifecycle policy is applied.
      • Status: Activation status of the lifecycle policy.
        • ON: The policy is active and can run at the time of application.
        • OFF: The policy is not active and cannot run at the time of application.
    • Managed target (Source)
      • Bucket: Target bucket for the lifecycle policy application.
      • Object naming rule (prefix): Prefix that restricts the managed objects.
    • Transfer location (target)
      • Bucket: The Archive Storage bucket for data migration when migrate/delete after migration is selected.
      • Detailed path: The detailed path of the Archive Storage bucket for data migration.

Lifecycle policy creation

How to create a new lifecycle policy:

  1. On the NAVER Cloud Platform console, navigate to i_menu > Services > Storage > Object Storage.

  2. Select Lifecycle Management.

  3. Select [Add lifecycle policy].

  4. When the Add lifecycle policy window pops up, set the policy.

    • Policy type: The policy type.
      • Delete upon expiration: The object is deleted after a certain period of time.
      • Transfer: Transfer a copy of the object to the Archive Storage after a certain period of time (the original is kept in the Object Storage).
      • Delete after transfer: Transfer the object to the Archive Storage after a certain period and delete the original from the Object Storage.
    • Transfer time (after creation): Time when the policy is applied. Specify when the object is deleted or transferred after saving.
    Note

    The migrate/delete after migration options are only available in Korea Region.

  5. Set the management target.

    • Target bucket: Target bucket for the lifecycle policy application.
    • Object naming rule (Prefix): The prefix that restricts the target object application (example: apache/log/access_).
      • The prefix policy applies to the entire object path, the folder and file names.
        Example: If "test10" is set as a prefix, the policy is applied to both the file name "test101.jpg" and the file path "test1010/img1.jpg".
  6. Set the Archive Storage path for the object when transfer/delete after transfer is selected.

    • Container (Bucket) name: Bucket within Archive Storage.
    • Detailed path: The detailed transfer destination of the selected bucket (example: apache_log/).
  7. Select [Next].

  8. Check the details and select [Finish].

    • The lifecycle policy is created and its status is automatically set to ON.
Note
  • If the target file name is 215 bytes or longer, the object may not be transferred to Archive Storage.
  • If the target file name contains duplicate slashes (/), the object may not be transferred to Archive Storage.
  • Objects with SSE-C settings cannot use the Archive Storage transfer feature.
  • WORM buckets cannot be transferred.

Stopping a lifecycle policy

You can stop a lifecycle policy. How to stop the policy:

  1. On the NAVER Cloud Platform console, navigate to i_menu > Services > Storage > Object Storage.
  2. Select Lifecycle Management.
  3. Choose the policy you wish to stop, and then select [Stop].
  4. When the Stop policy window pops up, select ** [Check]**.
    • The lifecycle policy in the list is then displayed as OFF.

Restart a lifecycle policy

You can restart a lifecycle policy. How to restart the policy:

  1. On the NAVER Cloud Platform console, navigate to i_menu > Services > Storage > Object Storage.
  2. Select Lifecycle Management.
  3. Choose the policy you wish to restart, and select [Start].
  4. When the Start policy window pops up, select [Check].
    • The lifecycle policy in the list is then displayed as ON.

Delete a lifecycle policy

You can delete a lifecycle policy. How to delete the policy:

Caution

When a lifecycle policy is deleted, it cannot be restored.

  1. On the NAVER Cloud Platform console, navigate to i_menu > Services > Storage > Object Storage.
  2. Select Lifecycle Management.
  3. Choose the policy you wish to delete, and select [Delete].
  4. When the Delete policy window pops up, select [Check].
    • The policy is stopped automatically and cleared from the lifecycle policy list.