mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03:00
set diskMaxConcurrent to 32 if nrRequests is lower
This commit is contained in:
@@ -200,7 +200,7 @@ func newXLStorageDiskIDCheck(storage *xlStorage, healthCheck bool) *xlStorageDis
|
|||||||
diskMaxConcurrent = 512
|
diskMaxConcurrent = 512
|
||||||
if storage.rotational {
|
if storage.rotational {
|
||||||
diskMaxConcurrent = int(storage.nrRequests) / 2
|
diskMaxConcurrent = int(storage.nrRequests) / 2
|
||||||
if diskMaxConcurrent == 0 {
|
if diskMaxConcurrent < 32 {
|
||||||
diskMaxConcurrent = 32
|
diskMaxConcurrent = 32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user