Skip to content

[Storage] Command line for badger -> pebble data migration #7413

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

Closed

Conversation

zhangchiqing
Copy link
Member

@zhangchiqing zhangchiqing commented May 16, 2025

Work towards #7395

This PR adds command wrapper to call the migration function (CopyFromBadgerToPebble) implemented in this PR

@zhangchiqing zhangchiqing force-pushed the leo/storage-data-migration-cmd branch 2 times, most recently from 1342cf5 to d865f41 Compare May 20, 2025 23:32
@zhangchiqing zhangchiqing force-pushed the leo/storage-data-migration-cmd branch from c73b216 to 4d43afe Compare May 21, 2025 16:16
BatchByteSize: 32_000_000, // 32 MB
ReaderWorkerCount: 2,
WriterWorkerCount: 2,
ReaderShardPrefixBytes: 2, // better to keep it as 2.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

benchmark shows prefixBytes: 2 took 1h11m, prefixBytes: 1 took 1h40m.

Comment on lines +16 to +17
ReaderWorkerCount: 2,
WriterWorkerCount: 2,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The worker count doesn't seem to make a big difference, 4 is the same as 2 for both reader and writer.

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.

1 participant