You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deleting rules with purge_replicas=True, the tombstone is set to the Unix Epoch. The order of replicas with identical tombstone is undefined.
Motivation
In operations, when an RSE is getting full, it might be possible to improve the situation by forcing the deletion of the largest unlocked replicas. However, if there are already a lot of small replicas with Epoch tombstone, the procedure might be ineffective.
Ordering by updated_at would allow some form of control over this.
Change
Order by tombstone, then by updated_at.
The text was updated successfully, but these errors were encountered:
The main motivation behind this comes from operations. When conducting
deletion campaigns involving many small-sized files (e.g. logs), in case
the rate of deletion is lower than the rate of transfer, operators may
opt to force the deletion of larger replicas in order to alleviate the
situation. However, if both small and large replicas have a Unix Epoch
tombstone, there is no way to influence the order by which they will be
deleted. Modifying the query to order by tombstone, then by updated_at,
removes this limitation.
The main motivation behind this comes from operations. When conducting
deletion campaigns involving many small-sized files (e.g. logs), in case
the rate of deletion is lower than the rate of transfer, operators may
opt to force the deletion of larger replicas in order to alleviate the
situation. However, if both small and large replicas have a Unix Epoch
tombstone, there is no way to influence the order by which they will be
deleted. Modifying the query to order by tombstone, then by updated_at,
removes this limitation.
Description
The sorting is currently done using the
tombstone
column:rucio/lib/rucio/core/replica.py
Lines 2681 to 2683 in c2b415b
When deleting rules with
purge_replicas=True
, the tombstone is set to the Unix Epoch. The order of replicas with identical tombstone is undefined.Motivation
In operations, when an RSE is getting full, it might be possible to improve the situation by forcing the deletion of the largest unlocked replicas. However, if there are already a lot of small replicas with Epoch tombstone, the procedure might be ineffective.
Ordering by
updated_at
would allow some form of control over this.Change
Order by
tombstone
, then byupdated_at
.The text was updated successfully, but these errors were encountered: