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

Allow upgrading WASM blobs #137

Closed
ra0x3 opened this issue Aug 2, 2022 · 1 comment · Fixed by #203
Closed

Allow upgrading WASM blobs #137

ra0x3 opened this issue Aug 2, 2022 · 1 comment · Fixed by #203
Assignees

Comments

@ra0x3
Copy link
Contributor

ra0x3 commented Aug 2, 2022

Additional context

  • Might be able to be done via some web endpoint?
  • Should ideally happen with little-to-no downtime
@ra0x3
Copy link
Contributor Author

ra0x3 commented Aug 4, 2022

@tjsharp1

  • This sounds like something that is ready for work?

  • I feel like New sqlite support #134 might have to go in before this could start 🤔 (could always just branch off of your work)

  • But yea any thoughts here? I'm thinking this functionality will:

    • Receive a blob at some endpoint POST - /wasm
    • Validate the blob received is the blob sent
    • Store the blob on disk wherever the previous module is stored
      • Either overwrite the pre-existing blob or deprecate it
    • Call some function to add a new indexer using a new manifest containing the new module (same functionality as here) -- which will/should overwrite the old indexer which was using the old manifest
  • Per your comment in the block explorer issue I'm thinking we leave authentication out for now (will be super easy to add later)

  • We could also maybe track WASM updates via some metadata table (sort've how we track table metadata with the graph registry)

@ra0x3 ra0x3 self-assigned this Aug 24, 2022
@ra0x3 ra0x3 linked a pull request Aug 29, 2022 that will close this issue
@ra0x3 ra0x3 linked a pull request Sep 9, 2022 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
1 participant