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

Turn Spark pod hook into a generic hook for handling external computing integrations #191

Merged
merged 6 commits into from
Dec 19, 2023

Conversation

etejedor
Copy link
Contributor

This is to implement a special treatment for HTCondor pools at the level of the modifier pod hook.

Now Spark and HTCondor will share a hook, which will configure both. The reason for this is that both share the need to open ports in the user session. Depending on what the user selects in the form (Spark, HTCondor or both) we will create a k8s service that provides the corresponding ports.

@etejedor etejedor requested review from diocas and PMax5 November 16, 2023 15:44
@etejedor etejedor self-assigned this Nov 16, 2023
swan-cern/files/swan_computing_config.py Outdated Show resolved Hide resolved
swan-cern/files/swan_computing_config.py Outdated Show resolved Hide resolved
The user will decide upon session start if they want to work with
an HTCondor cluster. If yes, the corresponding configuration will
be done.
Refactor the existing pod modifier hook for Spark to also do the
necessary configuration for HTCondor. The motivation to cluster
both together is the fact that both computing services require
port opening. Thus, one single k8s service with the necessary open
ports can serve both.

The choice of 18 ports for Spark is kept, and a new choice of 5
ports for HTCondor is introduced, which in practice means that 5
SwanHTCondorClusters can be created -- this should be enough.
@etejedor etejedor merged commit d87380f into swan-cern:master Dec 19, 2023
1 check passed
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