Create a Lifecycle Rule to Migrate Objects

JFrog Installation & Setup Documentation

Content Type
Installation & Setup
ft:sourceType
Paligo

Objects in the bucket need to be transitioned to the Intelligent Tiering storage class. This can be achieved with a lifecycle rule.

This rule has two purposes:

  • Migrate existing objects to Intelligent Tiering, filtering by the object size. Only objects that are above the minimum size established previously should be migrated.

  • Set Intelligent Tiering as the storage class for all newly created objects that are above the minimum size.

To configure a lifecycle rule, select your bucket, select the Management tab, and click Create lifecycle rule, as shown below.

Lifeycle_config_new.png

The example below shows a lifecycle rule that migrates objects to Intelligent Tiering. The lifecycle rule indicates a minimum object size of 10 MB.

lifecycle_rule_example.png

A few observations about lifecycle rules:

  1. A lifecycle rule is triggered once a day, it doesn’t run immediately. This means that pre-existing objects and also newly created objects may remain in the Standard storage class for a day until the lifecycle rule starts running and transitioning them.

  2. It processes the objects in batches.

  3. Depending on the amount of objects to migrate, it may take a few days for a lifecycle rule to transition all existing objects.

  4. The lifecycle rule is billed based on the amount of requests it makes. This number depends on the amount of objects to be transitioned.

For more information on lifecycle rules, see this blog post and this GitHub repo.