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

[Feature request]: Backend API for resource predictions #155

Open
goranbs opened this issue May 3, 2024 · 0 comments
Open

[Feature request]: Backend API for resource predictions #155

goranbs opened this issue May 3, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@goranbs
Copy link
Contributor

goranbs commented May 3, 2024

Contact details

No response

Is your feature request related to a problem? Please describe

Enable predicting the scaling laws of the data pipeline using the backend API

Describe the solution you'd like

In the backend controller API, create an endpoint that takes dryRuns as input and computes the scaling parameters of input metrics. The input metrics are functions f, of the size of the input data x.

The functions f(x) are assumed to be linear (a + xb) or a power law function (ax**b)

For each step in the workflow/data pipeline, the scaling parameters are computed for each metric.

The returned data should contain something like:

output_data = {
{
step_id: string,
step_name: string,
x_data: number[],
cpu: {
y_data: number[]
scaling_law: string,
scaling_parameters: [number, number]
scaling_law_r2: number
},
...
}

where x_data is the input file size of the dryRuns and here cpu is metric data for cpu usage. The scaling law can be "power" or "linear", r2 is the coefficient of determination and the scaling parameters are coeficcients a, b for the scaling law:

linear scaling law: a + bx
power scaling law: a
x**b

Describe alternatives you've considered

No response

Additional context

No response

@goranbs goranbs added the enhancement New feature or request label May 3, 2024
goranbs added a commit that referenced this issue May 3, 2024
@goranbs goranbs self-assigned this May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant