mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
optimize speedtest for smaller setups (#15414)
this has been observed in multiple environments where the setups are small `speedtest` naturally fails with default '10s' and the concurrency of '32' is big for such clusters. choose a smaller value i.e equal to number of drives in such clusters and let 'autotune' increase the concurrency instead.
This commit is contained in:
@@ -533,9 +533,11 @@ func (z *erasureServerPools) BackendInfo() (b madmin.BackendInfo) {
|
||||
rrSCParity := globalStorageClass.GetParityForSC(storageclass.RRS)
|
||||
|
||||
// Data blocks can vary per pool, but parity is same.
|
||||
for _, setDriveCount := range z.SetDriveCounts() {
|
||||
for i, setDriveCount := range z.SetDriveCounts() {
|
||||
b.StandardSCData = append(b.StandardSCData, setDriveCount-scParity)
|
||||
b.RRSCData = append(b.RRSCData, setDriveCount-rrSCParity)
|
||||
b.DrivesPerSet = append(b.DrivesPerSet, setDriveCount)
|
||||
b.TotalSets = append(b.TotalSets, z.serverPools[i].setCount)
|
||||
}
|
||||
|
||||
b.StandardSCParity = scParity
|
||||
|
||||
Reference in New Issue
Block a user