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

Snapshots compression for import/export/download #2741

Closed
12 tasks done
LesnyRumcajs opened this issue Mar 31, 2023 · 4 comments
Closed
12 tasks done

Snapshots compression for import/export/download #2741

LesnyRumcajs opened this issue Mar 31, 2023 · 4 comments
Assignees

Comments

@LesnyRumcajs
Copy link
Member

LesnyRumcajs commented Mar 31, 2023

Issue summary

We could speed up things by downloading compressed snapshots. Mainnet compressed snapshots are significantly smaller (70G vs 130G), and it would make a huge difference for bandwidth-constrained users.

Task summary

We should handle both importing and exporting compressed snapshots. Compression could be on by default. This must be configurable via configuration and/or flags.

Acceptance Criteria

  • Limit disk space usage. That is to say; it should be possible to write directly to the zstd stream and not create a car file, compress it and then delete it.
  • Forest can export compressed snapshots,
  • Forest can import compressed snapshots,
  • Forest can download compressed snapshots,
  • forest-cli can download compressed snapshots (right now it's downloading uncompressed ones only)

Other information and links

@elmattic
Copy link
Contributor

I like it.

@lemmih
Copy link
Contributor

lemmih commented May 9, 2023

@hanabi1224 Is this done?

@hanabi1224
Copy link
Contributor

@lemmih updated the checkboxes, modify forest and forest-cli to prefer compressed files one is not done

@sudo-shashank sudo-shashank removed their assignment May 24, 2023
@lemmih
Copy link
Contributor

lemmih commented Jun 22, 2023

Done.

@lemmih lemmih closed this as completed Jun 22, 2023
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

5 participants