server: Attempt to increase max open files. (#1328)

This commit is contained in:
Harshavardhana
2016-04-18 22:05:32 -07:00
committed by Anand Babu (AB) Periasamy
parent ff9a6b00cc
commit 6bc17a3aea
3 changed files with 75 additions and 0 deletions

View File

@@ -149,6 +149,11 @@ func initServerConfig(c *cli.Context) {
SecretAccessKey: secretKey,
})
}
// Set maxOpenFiles, This is necessary since default operating
// system limits of 1024, 2048 are not enough for Minio server.
setMaxOpenFiles()
// Do not fail if this is not allowed, lower limits are fine as well.
}
// Check server arguments.