mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
fix: change DISK_ to DRIVE_ for some drive related envs (#18005)
This commit is contained in:
@@ -725,7 +725,10 @@ var diskMaxTimeout = 2 * time.Minute
|
||||
var diskActiveMonitoring = true
|
||||
|
||||
func init() {
|
||||
s := env.Get("_MINIO_DISK_MAX_CONCURRENT", "")
|
||||
s := env.Get("_MINIO_DRIVE_MAX_CONCURRENT", "")
|
||||
if s == "" {
|
||||
s = env.Get("_MINIO_DISK_MAX_CONCURRENT", "")
|
||||
}
|
||||
if s != "" {
|
||||
diskMaxConcurrent, _ = strconv.Atoi(s)
|
||||
if diskMaxConcurrent <= 0 {
|
||||
@@ -734,7 +737,10 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
d := env.Get("_MINIO_DISK_MAX_TIMEOUT", "")
|
||||
d := env.Get("_MINIO_DRIVE_MAX_TIMEOUT", "")
|
||||
if d == "" {
|
||||
d = env.Get("_MINIO_DISK_MAX_TIMEOUT", "")
|
||||
}
|
||||
if d != "" {
|
||||
timeoutOperation, _ := time.ParseDuration(d)
|
||||
if timeoutOperation < time.Second {
|
||||
@@ -744,7 +750,8 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
diskActiveMonitoring = env.Get("_MINIO_DISK_ACTIVE_MONITORING", config.EnableOn) == config.EnableOn
|
||||
diskActiveMonitoring = (env.Get("_MINIO_DRIVE_ACTIVE_MONITORING", config.EnableOn) == config.EnableOn) ||
|
||||
(env.Get("_MINIO_DISK_ACTIVE_MONITORING", config.EnableOn) == config.EnableOn)
|
||||
|
||||
diskStartChecking = 16 + diskMaxConcurrent/8
|
||||
if diskStartChecking > diskMaxConcurrent {
|
||||
|
||||
Reference in New Issue
Block a user