refactor: tune up max workers
This commit is contained in:
parent
46c1f03454
commit
4230146965
|
@ -23,7 +23,7 @@ import (
|
|||
)
|
||||
|
||||
const writers = 10
|
||||
const maxConcurrentWeight = 4
|
||||
const maxConcurrentWeight = 6
|
||||
const largeFileSize = 500 * 1024 * 1024 // 500 MB
|
||||
|
||||
type BackBalze struct {
|
||||
|
@ -40,7 +40,7 @@ func NewBackBlaze(bbID, bbKey string) *BackBalze {
|
|||
return &BackBalze{
|
||||
bbID: bbID,
|
||||
bbKey: bbKey,
|
||||
maxWorkers: runtime.NumCPU(),
|
||||
maxWorkers: runtime.NumCPU() * 3,
|
||||
}
|
||||
}
|
||||
func (b *BackBalze) WithBucket(bucketName string) *BackBalze {
|
||||
|
|
Loading…
Reference in New Issue