mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
Set maxResources appropriately for gateway like server (#5321)
This commit is contained in:
committed by
Nitish Tiwari
parent
374feda237
commit
f25ec31565
@@ -150,6 +150,9 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
globalPublicCerts, globalRootCAs, globalTLSCertificate, globalIsSSL, err = getSSLConfig()
|
||||
fatalIf(err, "Invalid SSL certificate file")
|
||||
|
||||
// Set system resources to maximum.
|
||||
errorIf(setMaxResources(), "Unable to change resource limit")
|
||||
|
||||
initNSLock(false) // Enable local namespace lock.
|
||||
|
||||
newObject, err := gw.NewGatewayLayer(globalServerConfig.GetCredential())
|
||||
|
||||
Reference in New Issue
Block a user