set diskMaxConcurrent to 32 if nrRequests is lower

This commit is contained in:
Harshavardhana 2023-10-24 17:21:06 -07:00
parent c0f2f84285
commit 483389f2e2

View File

@ -200,7 +200,7 @@ func newXLStorageDiskIDCheck(storage *xlStorage, healthCheck bool) *xlStorageDis
diskMaxConcurrent = 512
if storage.rotational {
diskMaxConcurrent = int(storage.nrRequests) / 2
if diskMaxConcurrent == 0 {
if diskMaxConcurrent < 32 {
diskMaxConcurrent = 32
}
}