merge_rse¶
Keep track of RSEs where files are stored
- class merge_utils.merge_rse.MergeRSE(valid: bool, nearline_dist: float = 0)[source]¶
Class to store information about an RSE
- nearest_site(sites: list | None = None) tuple [source]¶
Get the nearest merging site to this RSE
- Parameters:
sites – list of merging sites to consider (default: all sites)
- Returns:
tuple of (site, distance)
- property pfns: dict¶
Get the set of PFNs for this RSE
- class merge_utils.merge_rse.MergeRSEs[source]¶
Class to keep track of a set of RSEs
- async add_pfn(did: str, pfn: str, info: dict) float [source]¶
Add a file PFN to the corresponding RSE
- Parameters:
did – file DID
pfn – physical file name
info – dictionary with RSE information
- Returns:
distance from the RSE to the nearest site
- async add_replicas(did: str, replicas: dict) int [source]¶
Add a set of file replicas to the RSEs
- Parameters:
did – file DID
replicas – Rucio replica dictionary
- Returns:
number of PFNs added