site replication turn off retry login for admin API calls (#18039)

additionally also mark site offline if n/w is down
This commit is contained in:
Poorna
2023-09-15 18:01:47 -07:00
committed by GitHub
parent ce05bb69dc
commit b733e6e83c
2 changed files with 10 additions and 1 deletions

View File

@@ -113,9 +113,10 @@ func init() {
shardDiskTimeDelta = 1 * time.Minute
}
// All minio-go API operations shall be performed only once,
// All minio-go and madmin-go API operations shall be performed only once,
// another way to look at this is we are turning off retries.
minio.MaxRetry = 1
madmin.MaxRetry = 1
}
const consolePrefix = "CONSOLE_"