Feature #40453
rgw: lifecycle support expire objects 0 days
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Tags:
lifecycle, object expiration
Backport:
Description
Hi RGW Team,
Actually lifecycle policy for expire object got a min value of 1.
The minimal valid policy:
<LifecycleConfiguration>
<Rule>
<ID>Purge Bucket</ID>
<Filter>
</Filter>
<Status>Enabled</Status>
<Expiration>
<Days>1</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
A valid policy of 0 returns error.
<LifecycleConfiguration>
<Rule>
<ID>Purge Bucket</ID>
<Filter>
</Filter>
<Status>Enabled</Status>
<Expiration>
<Days>0</Days>
</Expiration>
</Rule>
</LifecycleConfiguration>
If you allow limit 0 , next time lifecycle process start should empty the full bucket.
I think its going to be more usefull do it at lifecycle level than running a s3cmd or radosgw-admin.
Delete buckets with millions objects take to much hours with a cli in background and a lifecycle policy should request less iterations
History
#1 Updated by Brad Hubbard almost 5 years ago
- Project changed from Ceph to rgw
- Category deleted (
common)