Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prestage support to the client #1603

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bbockelm
Copy link
Collaborator

The new pelican object prestage command (and the corresponding
public APIs) allow a user to trigger the prestaging of data to a
specific cache.

The prestage itself is not intelligent: it checks to see if a file
is already present and, if not, it triggers a full download. Future
work may extend this on the Pelican-side so there's a control
interface exposed that triggers prestaging without data movement all
the way to the client.

Includes unit tests and some modest refactoring. Given the current
LIGO origins don't have the collections URL set (and I wanted to
test it out), this also provides the ability to override the
collections URL on the CLI.

The cache plugin directory is controlled by environment variable.  If
the environment variable is set in the `pelican` environment, pass its
value along to xrootd.

Simplifies testing in environments where the plugin is not installed
as root.
The new `pelican object prestage` command (and the corresponding
public APIs) allow a user to trigger the prestaging of data to a
specific cache.

The prestage itself is not intelligent: it checks to see if a file
is already present and, if not, it triggers a full download.  Future
work may extend this on the Pelican-side so there's a control
interface exposed that triggers prestaging without data movement all
the way to the client.

Includes unit tests and some modest refactoring.  Given the current
LIGO origins don't have the collections URL set (and I wanted to
test it out), this also provides the ability to override the
collections URL on the CLI.
@bbockelm
Copy link
Collaborator Author

Note: patch requires the following XRootD fix to work: xrootd/xrootd#2348

@bbockelm bbockelm added this to the v7.11.0 milestone Oct 8, 2024
@jhiemstrawisc jhiemstrawisc modified the milestones: v7.11.0, v7.12.0 Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants