Add log line re: server manager backing off and sleeping
This is useful in situations where the RPC rotate duration is greater than 1µs. WTB exponential backoff of logging so we don't spam forever.
This commit is contained in:
parent
689b79aef3
commit
6a987062b9
|
@ -312,7 +312,7 @@ FAILED_SERVER_DURING_REBALANCE:
|
||||||
// the world a happy place again.
|
// the world a happy place again.
|
||||||
if !foundHealthyServer {
|
if !foundHealthyServer {
|
||||||
const backoffDuration = 1 * time.Second
|
const backoffDuration = 1 * time.Second
|
||||||
// sm.logger.Printf("[INFO] server manager: No servers available, sleeping for %v", backoffDuration)
|
sm.logger.Printf("[DEBUG] server manager: No servers available, sleeping for %v", backoffDuration)
|
||||||
|
|
||||||
// Sleep with no locks
|
// Sleep with no locks
|
||||||
time.Sleep(backoffDuration)
|
time.Sleep(backoffDuration)
|
||||||
|
|
Loading…
Reference in New Issue