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

C2D.2: Orchestration layer #422

Open
alexcos20 opened this issue May 13, 2024 · 0 comments
Open

C2D.2: Orchestration layer #422

alexcos20 opened this issue May 13, 2024 · 0 comments
Labels

Comments

@alexcos20
Copy link
Member

Former known as "operator-service", this layer handles interactions between ocean-node core layer and different execution environments.

Since we will have two types of operations (docker API & k8 API), which sometimes overlap we will start with the following structure:

  • new classe, derived from C2DEngine, called C2DEngineLocal. From this one, we will create two more:
    • C2DEngineK8API
    • C2DEngineDockerAPI

In a nutshell, here is the implemented functionality of new classes

New job:

  • take a new workflow (created by startJob core handler)
  • insert workflow in database
  • signal engine handler to take over the job execution

Views:

  • exposing list of compute environments for all engines (both Docker & K8 will have compute envs defined through env variables)
  • exposing list of running jobs and limits (max concurrent jobs, etc)
  • read workflow status when c2d getStatus core is called
  • serve job results when c2d getJobResult is called
@alexcos20 alexcos20 added the Epic label May 13, 2024
@mihaisc mihaisc changed the title C2D v2: Orchestration layer C2D.2: Orchestration layer May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant