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

Change the shard size in the deployL2-it.js to 1GB to support test multi-shards in the integration test. #109

Merged
merged 2 commits into from
Sep 14, 2024

Conversation

ping-ke
Copy link
Contributor

@ping-ke ping-ke commented Sep 9, 2024

Change the shard size in the deployL2-it.js to 1GB to support test multi-shards in the integration test.

As we want to upload more than 1 shard of data and assume that the second shard already has about 30% of the data:
If the shard size is 1G (8192 blobs), then we can upload 10,800 blobs (8192 blobs in shard 0 and 2608 blobs in shard 1 to make it easy to calculate) using writeBlobs with batch size 6. Then, we need to upload 1800 times, which would take at least 3600s = 1h.
If the shard size is 4G (32,768 blobs), then we can upload 10,800 * 4 = 43,200 blobs (same data coverage in shard 1) using writeBlobs with a batch size of 6, then we need to upload 7,200 times which would take at least 14,400s = 4h.

Considering that not every transaction can be included in the block, it may take more than 12 hours, so change the value to 1G.

@qzhodl
Copy link
Contributor

qzhodl commented Sep 9, 2024

Why 1 GB instead of 4 GB? How much time it will cost to upload 1 GB data to the layer 2?

@ping-ke ping-ke requested a review from qzhodl September 9, 2024 11:21
@ping-ke ping-ke merged commit a0a7fba into main Sep 14, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants