-
Notifications
You must be signed in to change notification settings - Fork 1
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
federation of billing #96
Comments
Further possible todo's under this ticket:
|
@soxofaan Do you maybe remember what you meant here. If I remember correctly we have SH PUs as currency within our backend and also report this to the billing endpoint where then the translation into platform credits is done. |
I think I meant that all upstream backends in the aggregator should use the same currency ( The aggregator has to list a single currency under its own capabilties, and if there is a discrepancy with upstream backends, there is a problem because there is currently no conversion happening from the cost reported by upstream backend to cost reported by aggregator. |
I see the problem but not sure how to best solve this (I am confident we report and log the correct things but some values we expose to the user might indeed be wrong/confusing). We are currently implementing some more billing metadata and will afterwards access where there are issues. Currently we have indeed "processing units" as currency as users can also use the backend directly via their SH account without going through the platform/aggregator. For such user's credits don't mean anything.
I don't think this is a problem for now as you implemented some currency conversion on the billing endpoint for our backend: https://github.com/openEOPlatform/architecture-docs/issues/250#issuecomment-1187503610 |
Just for overview of current state
Endpoints that involve currency (e.g. though a
|
looping in @christophreimer @LukeWeidenwalker : what is the status of EODC back-end regarding using "credits" as currency (instead of "EUR")? |
Hi, can bump the api to switch to "credits", that's not a problem. We could also add support for credits to |
quick note that all upstream back-ends should use same billing currency.
VITO backend uses credits at the moment: https://github.com/Open-EO/openeo-geopyspark-driver/blob/4c4d2ad70344ad0f0b3b9bb6abaa8491da49a187/openeogeotrellis/backend.py#L366-L369
aggregator uses EUR, but that should change to credits as well
openeo-aggregator/src/openeo_aggregator/backend.py
Lines 1113 to 1116 in 14c06e3
The text was updated successfully, but these errors were encountered: