W E K A
3.14
3.14
  • WEKA v3.14 Documentation
  • Weka System Overview
    • About the WEKA System
    • SSD Capacity Management
    • Filesystems, Object Stores & Filesystem Groups
    • Weka Networking
    • Data Lifecycle Management
    • Weka Client & Mount Modes
    • Glossary
  • Getting Started with Weka
    • Quick Install Guide
    • Managing the Weka System
    • CLI Overview
    • GUI Overview
    • Serving IOs with WekaFS
  • Planning & Installation
    • Prerequisites for Installation
    • Bare Metal Installation
      • Planning a Weka System Installation
      • Setting Up the Hosts
        • SR-IOV Enablement
      • Obtaining the Weka Install File
      • Weka System Installation Process Using the CLI
      • Adding Clients
    • AWS Installation
      • Self-Service Portal
      • CloudFormation Template Generator
      • Deployment Types
      • AWS Outposts Deployment
      • Supported EC2 Instance Types
      • Adding Clients
      • Auto Scaling Group
      • Troubleshooting
  • Performance
    • Testing Weka Performance
      • Test Environment Details
  • WekaFS Filesystems
    • Managing Filesystems, Object Stores & Filesystem Groups
      • Managing Object Stores
      • Managing Filesystem Groups
      • Managing Filesystems
      • Attaching/Detaching Object Stores to/from Filesystems
      • KMS Management
    • Advanced Data Lifecycle Management
      • Advanced Time-based Policies for Data Storage Location
      • Data Management in Tiered Filesystems
      • Transition Between Tiered and SSD-Only Filesystems
      • Manual fetch and release of data
    • Mounting Filesystems
    • Snapshots
    • Snap-To-Object
    • Quota Management
  • Additional Protocols
    • NFS
    • SMB
      • SMB Management Using CLIs
      • SMB Management Using the GUI
    • S3
      • S3 Cluster Management
      • S3 Buckets Management
      • S3 Users and Authentication
      • S3 Information Lifecycle Management
      • Audit S3 APIs
      • S3 Limitations
      • S3 Examples using boto3
  • Operation Guide
    • Alerts
      • List of Alerts
    • Events
      • List of Events
    • Statistics
      • List of Statistics
    • System Congestion
    • Security
      • User Management
      • Organizations
    • Expanding & Shrinking Cluster Resources
      • Expand & Shrink Overview
      • Stages in Adding a Backend Host
      • Expansion of Specific Resources
      • Shrinking a Cluster
    • Background Tasks
    • Upgrading Weka Versions
  • Billing & Licensing
    • License Overview
    • Classic License
    • Pay-As-You-Go License
  • Support
    • Prerequisites and Compatibility
    • Getting Support for Your Weka System
    • The Weka Support Cloud
    • Diagnostics CLI Command
  • Appendix
    • Weka CSI Plugin
    • External Monitoring
    • Snapshot Management
  • REST API
Powered by GitBook
On this page
  • Overview
  • Rules Evaluation
  • Managing Rules
  • Creating an ILM Rule
  • Viewing ILM Rules
  • Deleting an ILM Rule
  • Resetting a Bucket's ILM Rules
  1. Additional Protocols
  2. S3

S3 Information Lifecycle Management

This page describes how to define information lifecycle rules for S3 buckets.

Overview

For S3 buckets, it is possible to set information lifecycle rules to apply to the objects within the bucket. The ILM rules apply to the data within the bucket, no matter by which protocol it has been created.

Rules Evaluation

Weka currently only supports rules for expiring objects and allows you to set different expirations per object prefix and tags. Up to 1000 rules per bucket are supported. If multiple rules are overlapping, the rule with the earliest expiration that applies for an object deletes this object from the bucket.

Managing Rules

Creating an ILM Rule

Command: weka s3 bucket lifecycle-rule add

Use the following command line to create an ILM rule:

weka s3 bucket lifecycle-rule add <bucket> <expiry-days> [--prefix prefix] [--tags tags]

Parameters in Command Line

Name

Type

Value

Limitations

Mandatory

Default

bucket

String

The name of the S3 bucket

Yes

expiry-days

Number

The number of days to wait before expiring an object

Minimum of 1 day

Yes

prefix

String

The prefix of objects to apply the rule to

No

tags

String

Key value pair of object tags to apply the rule to

Pairs of key values: '<k1>=<v1>&<k2=<v2>'

No

Note: The expiry-days is the minimum time to wait before expiring an object. In extreme load and scale cases, it might take longer than the expiry-days to delete an object.

Viewing ILM Rules

Command: weka s3 bucket lifecycle-rule list‌

Use the following command line to view a bucket's existing ILM rules:‌

weka s3 bucket lifecycle-rule list <bucket>‌

Parameters in Command Line

Name

Type

Value

Limitations

Mandatory

Default

bucket

String

The name of the S3 bucket

​Content

Yes

​Content

Deleting an ILM Rule

Command: weka s3 bucket lifecycle-rule remove

Use the following command line to delete an ILM rule:

weka s3 bucket lifecycle-rule remove <bucket> <rule>

Parameters in Command Line

Name

Type

Value

Limitations

Mandatory

Default

bucket

String

The name of the S3 bucket

Yes

rule

String

The ID of the rule to delete

Yes

Resetting a Bucket's ILM Rules

Command: weka s3 bucket lifecycle-rule reset

Use the following command line to delete all the ILM rules of a specified bucket:

weka s3 bucket lifecycle-rule reset <bucket>

Parameters in Command Line

Name

Type

Value

Limitations

Mandatory

Default

bucket

String

The name of the S3 bucket

Yes

PreviousS3 Users and AuthenticationNextAudit S3 APIs

Last updated 3 years ago