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

Speed up AWS images creation #974

Closed
fabioDMFerreira opened this issue Mar 19, 2021 · 0 comments · Fixed by #1031
Closed

Speed up AWS images creation #974

fabioDMFerreira opened this issue Mar 19, 2021 · 0 comments · Fixed by #1031
Labels

Comments

@fabioDMFerreira
Copy link
Contributor

Currently, the process of creating an image involves:

  1. uploading raw image to s3
  2. importing the raw image to EBS snapshots
  3. registering image from EBS snapshot

The process is taking longer is the step 2.

Instead of creating a snapshot from an s3 object, it's possible to write data directly to the snapshot using the EBS API.
https://pkg.go.dev/github.com/aws/[email protected]/service/ebs

This may involve programming the next steps:

  1. Start snapshot (https://pkg.go.dev/github.com/aws/[email protected]/service/ebs#EBS.StartSnapshot)
  2. Writing data to each snapshot block (https://pkg.go.dev/github.com/aws/[email protected]/service/ebs#EBS.PutSnapshotBlock)
  3. Complete snapshot, which changes the snapshot state and block writes (https://pkg.go.dev/github.com/aws/[email protected]/service/ebs#EBS.CompleteSnapshot)
fabioDMFerreira added a commit to fabioDMFerreira/ops that referenced this issue May 14, 2021
* create snapshot with local file in aws (closes nanovms#974)
fabioDMFerreira added a commit that referenced this issue May 14, 2021
* create snapshot with local file in aws (closes #974)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant