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 Director capability into the Pelican CLI #7

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

bbockelm
Copy link
Collaborator

@bbockelm bbockelm commented Jul 5, 2023

This is a first draft of the conversion of the Director code into the Pelican CLI.

While it compiles, it's not tested -- just a rote conversion of the existing Python code. It does include GeoIP lookup and integration with topology. Currently, the biggest missing piece (beyond testing/debugging) is actually hooking it into the CLI itself.

jhiemstrawisc referenced this pull request in jhiemstrawisc/pelican Jul 21, 2023
PR #7 introduced a framework for including the Director in the Pelican CLI,
toward making all Pelican services available under a single binary. This commit
extends that PR to hook the Director package up to the CLI, the Pelican's
configuration mechanisms, and to actually sort out a few bugs related to the
untested director code.

It should be noted that there are currently a few hacks in the code that need
clearing up before any merge, but as of now the commit makes the following
possible:
`pelican director serve --cache-port 8000`
This will serve the Director's cache-redirection service on port 8000 using a gin
engine. When we've figured out how to handle Origin redirects and implemented an
origin-redirect service, we'll be able to do:
`pelican director serve --cache-port 8000 --origin-port 8001`
to split apart the two endpoints.

As for the local lint... I'm still trying to figure out how to shut that feature
off in my editor. Sorry for the noise!
@jhiemstrawisc jhiemstrawisc mentioned this pull request Jul 21, 2023
@bbockelm bbockelm merged commit 62a0dd3 into PelicanPlatform:main Jul 27, 2023
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.

1 participant