src/server/pkg/backoff/exponential.go
func New10sBackOff() *ExponentialBackOff {
	b := &ExponentialBackOff{
		InitialInterval:     100 * time.Millisecond,
		RandomizationFactor: DefaultRandomizationFactor,
		Multiplier:          DefaultMultiplier,
		MaxInterval:         2 * time.Second,
		MaxElapsedTime:      10 * time.Second,
		Clock:               SystemClock,
	}
	return b.withCanonicalRandomizationFactor().withReset()
}
func New10sBackOff() *ExponentialBackOff {
	b := &ExponentialBackOff{
		InitialInterval:     100 * time.Millisecond,
		RandomizationFactor: DefaultRandomizationFactor,
		Multiplier:          DefaultMultiplier,
		MaxInterval:         2 * time.Second,
		MaxElapsedTime:      10 * time.Second,
		Clock:               SystemClock,
	}
	return b.withCanonicalRandomizationFactor().withReset()
}
// New10sBackOff returns a backoff that's slightly more aggressive than
// NewExponentialBackOff. The Max Elapsed time for this backoff is 10s, and the
// initial backoff is 100ms (instead of 500). Therefore this will retry at most
// 10 times and then fail (depending on RPC timeout), and may be more useful
// for interactive RPCs than the default timeout of 60s.