mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
feat: implement support batch replication (#15554)
This commit is contained in:
1 parent
4d761fda81
commit
2a13cc28f2
23 files changed
+5617
-172
No files matched your search
@@ -45,8 +45,8 @@ func oldLinux() bool {
|
||||
|
||||
func setMaxResources() (err error) {
|
||||
// Set the Go runtime max threads threshold to 90% of kernel setting.
|
||||
sysMaxThreads, mErr := sys.GetMaxThreads()
|
||||
if mErr == nil {
|
||||
sysMaxThreads, err := sys.GetMaxThreads()
|
||||
if err == nil {
|
||||
minioMaxThreads := (sysMaxThreads * 90) / 100
|
||||
// Only set max threads if it is greater than the default one
|
||||
if minioMaxThreads > 10000 {
|
||||
|
||||
Reference in new issue
Block a user