mirror of
https://github.com/minio/minio.git
synced 2025-04-20 02:27:50 -04:00
Fix replication slowness (#10632)
- Increase channel buffer length - Avoid blocking wait on replicaCh
This commit is contained in:
parent
9dda9fb903
commit
7fbfdceba3
@ -310,7 +310,7 @@ func newReplicationState() *replicationState {
|
|||||||
globalReplicationConcurrent = 1
|
globalReplicationConcurrent = 1
|
||||||
}
|
}
|
||||||
rs := &replicationState{
|
rs := &replicationState{
|
||||||
replicaCh: make(chan ObjectInfo, globalReplicationConcurrent*2),
|
replicaCh: make(chan ObjectInfo, 10000),
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
<-GlobalContext.Done()
|
<-GlobalContext.Done()
|
||||||
@ -332,6 +332,7 @@ func (r *replicationState) addWorker(ctx context.Context, objectAPI ObjectLayer)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
replicateObject(ctx, oi, objectAPI)
|
replicateObject(ctx, oi, objectAPI)
|
||||||
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user