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

Metrics Calculation Service: Rewrite protoype arrow flight server to new service #2470

Open
ravenac95 opened this issue Nov 19, 2024 · 0 comments
Assignees

Comments

@ravenac95
Copy link
Member

What is it?

The metrics calculation service is responsible for managing our duckdb backed cluster for metrics calculation. This makes it so that the sqlmesh code doesn’t directly instantiate the cluster from the multiple threads of execution

Notes

  • For now we will do things with polling for asynchronous things as there aren’t many consumers of the service

Endpoints

  • GET /status
    • Simple liveness endpoint
    • Params
      • N/A
    • Returns
      • 200
        • This will mean the service has started
  • POST /cluster/start
    • Idempotent request to ensure the cluster is started.
    • Params
      • min_size - cluster minimum size
      • max_size - cluster maximum size
    • Returns
      • 200
  • GET /cluster/status
    • Gets the current status
    • Params
      • N/A
    • Returns
      • 200
        • isReady: bool - True if the cluster is ready to operate
  • POST /job/submit
    • Submits query job for calculation
    • Params
      • Query to execute
      • Time range
      • Dependent tables
      • Dependent table mappings
      • GCS path to write to
    • Returns
      • Job-id
  • POST /job/status
    • Returns the status of a metrics calculation job
@ravenac95 ravenac95 self-assigned this Nov 19, 2024
@ravenac95 ravenac95 added this to OSO Nov 19, 2024
@github-project-automation github-project-automation bot moved this to Backlog in OSO Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant