Experiment with higher parallelism for drive
This commit is contained in:
parent
5669619a8d
commit
f60aa91e57
@ -294,12 +294,17 @@ func (w Wrapper) makeSnapshotWithRoot(
|
|||||||
Path: root.Name(),
|
Path: root.Name(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parallelism := policy.OptionalInt(10)
|
||||||
|
|
||||||
trueVal := policy.OptionalBool(true)
|
trueVal := policy.OptionalBool(true)
|
||||||
errPolicy := &policy.Policy{
|
errPolicy := &policy.Policy{
|
||||||
ErrorHandlingPolicy: policy.ErrorHandlingPolicy{
|
ErrorHandlingPolicy: policy.ErrorHandlingPolicy{
|
||||||
IgnoreFileErrors: &trueVal,
|
IgnoreFileErrors: &trueVal,
|
||||||
IgnoreDirectoryErrors: &trueVal,
|
IgnoreDirectoryErrors: &trueVal,
|
||||||
},
|
},
|
||||||
|
UploadPolicy: policy.UploadPolicy{
|
||||||
|
MaxParallelFileReads: ¶llelism,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
policyTree, err := policy.TreeForSourceWithOverride(innerCtx, w.c, si, errPolicy)
|
policyTree, err := policy.TreeForSourceWithOverride(innerCtx, w.c, si, errPolicy)
|
||||||
|
|||||||
@ -471,7 +471,7 @@ func (oc *Collection) streamItems(ctx context.Context, errs *fault.Bus) {
|
|||||||
int64(len(oc.driveItems)))
|
int64(len(oc.driveItems)))
|
||||||
defer close(folderProgress)
|
defer close(folderProgress)
|
||||||
|
|
||||||
semaphoreCh := make(chan struct{}, graph.Parallelism(path.OneDriveService).Item())
|
semaphoreCh := make(chan struct{}, 8)
|
||||||
defer close(semaphoreCh)
|
defer close(semaphoreCh)
|
||||||
|
|
||||||
ctx = clues.Add(ctx,
|
ctx = clues.Add(ctx,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user