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

[Tech Spike] Edge-UR integration #78

Open
jcace opened this issue Jun 12, 2023 · 3 comments
Open

[Tech Spike] Edge-UR integration #78

jcace opened this issue Jun 12, 2023 · 3 comments
Assignees

Comments

@jcace
Copy link
Contributor

jcace commented Jun 12, 2023

  • Edge - horizontally scalable upload gateway
  • auto aggregation and commP computation from bucket -> carfile, preconfigured size threshold

2 new APIs
-> GET cars

  • piece cid/commp, sizes, CID/CAR mapping

-> DELETE cars

  • remove from blockstore

-> GET stats

  • disk usage, cpu usage, storage % etc

Authentication
when edge node spin up, have a token as an env var. required in order to call the delete/stats API

With this architecture, DDM can maintain a registry list of Edges (authenticated with their tokens), and call them continuously to get CARfile metadata, push out deals to SPs as they are claimed

Store the mapping of CID/CAR on both Edge and DDM database, so that an edge can die and we can reconstruct the CIDs from scratch by retrieving the carfiles from the network.

@jcace
Copy link
Contributor Author

jcace commented Jun 15, 2023

Image

@jcace jcace assigned alvin-reyes and jcace and unassigned alvin-reyes Jun 15, 2023
@jcace
Copy link
Contributor Author

jcace commented Jun 15, 2023

@alvin-reyes to implement on Edge side (Edge-URI / Upload, Retrieve, Import)

@jcace
Copy link
Contributor Author

jcace commented Jun 22, 2023

Validated the import from Edge-URID to DDM -> simple bash script for testing: https://github.com/application-research/delta-dm/blob/spike.edgeImport/scripts/edge-import.sh

End-to-end flow is blocked on the importer side as we still need a way to automate downloads of the carfiles on the SP side

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

No branches or pull requests

2 participants