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

Honor "budget" when/before running batch job #826

Open
soxofaan opened this issue Jul 17, 2024 · 3 comments
Open

Honor "budget" when/before running batch job #826

soxofaan opened this issue Jul 17, 2024 · 3 comments

Comments

@soxofaan
Copy link
Member

soxofaan commented Jul 17, 2024

When creating a batch job, the user can specify a "budget":

POST /jobs
Maximum amount of costs the request is allowed to produce. The value MUST be specified in the currency of the back-end. No limits apply, if the value is null or the back-end has no currency set in GET /.

This attribute is supported e.g. by the python client (e.g. see https://open-eo.github.io/openeo-python-client/api.html#openeo.rest.datacube.DataCube.create_job), but the geopyspark backend ignores this

@soxofaan soxofaan changed the title Honor Honor "budget" when running batch job Jul 17, 2024
@soxofaan
Copy link
Member Author

The need for such a feature came up last week, when we had the problem that jobs suddenly took significantly longer to run and consequently consumed significantly more credits than normal due to cluster saturation

related:

@soxofaan
Copy link
Member Author

cc @HansVRP

@soxofaan soxofaan changed the title Honor "budget" when running batch job Honor "budget" when/before running batch job Jul 17, 2024
@soxofaan
Copy link
Member Author

I'm not sure if we can reliably predict the cost of a job before running it, so blocking the start of a job because of budget constraints is probably not feasible at the moment.

However we could look into automatically canceling a job when it goes over budget (assuming we can track that in "real time")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant