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

11-to-12: Re-work logic to use the backup file for both migrate and revert #150

Merged
merged 7 commits into from
Feb 15, 2022
Prev Previous commit
Set default workers to 1 and increase sync size to 100MiB
  • Loading branch information
hsanjuan committed Feb 15, 2022
commit fa319e85fc997b37f42f2b216c887a4df17e2461
4 changes: 2 additions & 2 deletions fs-repo-11-to-12/migration/swapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
)

// SyncSize specifies how much we batch data before committing and syncing.
var SyncSize uint64 = 20 * 1024 * 1024 // 20MiB
var SyncSize uint64 = 100 * 1024 * 1024 // 100MiB

// NWorkers sets the number of swapping threads to run when applying a
// migration.
var NWorkers int = 4
var NWorkers int = 1

func init() {
workerEnvVar := "IPFS_FS_MIGRATION_11_TO_12_NWORKERS"
Expand Down