avoid using 10MiB EC buffers in maxAPI calculations (#19665)

max requests per node is more conservative in its value
causing premature serialization of the calls, avoid it
for newer deployments.
This commit is contained in:
Harshavardhana
2024-05-03 13:08:20 -07:00
committed by GitHub
parent 4afb59e63f
commit da3e7747ca
5 changed files with 38 additions and 23 deletions

View File

@@ -575,7 +575,7 @@ func applyDynamicConfigForSubSys(ctx context.Context, objAPI ObjectLayer, s conf
configLogIf(ctx, fmt.Errorf("Invalid api configuration: %w", err))
}
globalAPIConfig.init(apiConfig, setDriveCounts)
globalAPIConfig.init(apiConfig, setDriveCounts, objAPI.Legacy())
autoGenerateRootCredentials() // Generate the KMS root credentials here since we don't know whether API root access is disabled until now.
setRemoteInstanceTransport(NewHTTPTransportWithTimeout(apiConfig.RemoteTransportDeadline))
case config.CompressionSubSys: