Actions
Bug #75411
closed
BS
MH
RGW lifecycle transitions ignores compression
Bug #75411:
RGW lifecycle transitions ignores compression
Due date:
% Done:
0%
Source:
Backport:
tentacle, umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v21.3.0-1100-g423acf868d
Released In:
Upkeep Timestamp:
2026-09-30T01:25:46+00:00
Description
Using lifecycle policies to move objects between storage classes is a great way to save on space. For example starting with 3x replicas for performance, but as the data ages it gets moved to a new pool that uses erasure coding with compression. The problem is that even with the current tentacle release (v20.2.0) it only moves the data between the pools and doesn't even attempt to compress the data. I believe it would work with BlueStore compression, but RGW compression is preferred because it reduces the number of RADOS objects and can achieve higher compression ratios because it works on larger streams of data.
Steps to reproduce:
1. Create a new pool named 'default.rgw.buckets.data-zstd'
ceph osd pool create default.rgw.buckets.data-zstd 64 64 replicated ceph osd pool set default.rgw.buckets.data-zstd pg_autoscale_mode off ceph osd pool application enable default.rgw.buckets.data-zstd rgw
2. Add the storage class to the zonegroup:
radosgw-admin zonegroup placement add \ --rgw-zonegroup default \ --placement-id default-placement \ --storage-class COMPRESSED_ZSTD
3. Define the storage class placement:
radosgw-admin zone placement add \ --rgw-zone default \ --placement-id default-placement \ --storage-class COMPRESSED_ZSTD \ --data-pool default.rgw.buckets.data-zstd \ --compression zstd
4. Create the lifecycle policy:
<LifecycleConfiguration>
<Rule>
<ID>Compress objects using zstd after 1 day</ID>
<Prefix></Prefix>
<Status>Enabled</Status>
<Transition>
<Days>1</Days>
<StorageClass>COMPRESSED_ZSTD</StorageClass>
</Transition>
</Rule>
</LifecycleConfiguration>
5. Apply the lifecycle policy to a bucket:
s3cmd setlifecycle zstd-lifecycle.xml s3://benchmark
6. Adjust lifecycle processing to 1 minute for testing
ceph config set client.rgw rgw_lc_debug_interval 60
7. Verify the data moves to the new pool and is getting compressed (size_utilized should be smaller than size_actual):
radosgw-admin bucket stats --bucket=benchmark | jq .usage | grep -v size_kb
MH Updated by Matthew Heler 9 months ago
- Assignee set to Matthew Heler
- Backport set to tentacle
- Pull request ID set to 67725
MH Updated by Matthew Heler 8 months ago
- Status changed from New to Fix Under Review
MH Updated by Matthew Heler 8 months ago
- Project changed from Ceph to rgw
MH Updated by Matthew Heler 6 months ago
- Backport changed from tentacle to tentacle, umbrella
JI Updated by J. Eric Ivancich 5 months ago
- Related to Bug #75716: qa/rgw/multisite: flaky test - test_copy_object_different_bucket fails with object size mismatch (3 != 16 bytes) added
UB Updated by Upkeep Bot 5 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 423acf868d72263a87345c32925393d613e0e343
- Fixed In set to v21.3.0-1100-g423acf868d
- Upkeep Timestamp set to 2026-07-16T20:53:51+00:00
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #78315: tentacle: RGW lifecycle transitions ignores compression added
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #78316: umbrella: RGW lifecycle transitions ignores compression added
UB Updated by Upkeep Bot 5 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-16T20:53:51+00:00 to 2026-08-27T18:41:32+00:00
UB Updated by Upkeep Bot 2 months ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-08-27T18:41:32+00:00 to 2026-09-30T01:25:46+00:00
Actions