chore(cluster_config): set default timeout to 5s

Or the leader death could let the standbys down for a rather long time.
This commit is contained in:
Yicheng Qin
2014-05-13 12:45:13 -04:00
parent cbb706cd47
commit 403f709ebd
3 changed files with 7 additions and 7 deletions

View File

@ -12,13 +12,13 @@ const (
MinActiveSize = 3
// DefaultRemoveDelay is the default elapsed time before removal.
DefaultRemoveDelay = float64((30 * time.Minute) / time.Second)
DefaultRemoveDelay = float64((5 * time.Second) / time.Second)
// MinRemoveDelay is the minimum remove delay allowed.
MinRemoveDelay = float64((2 * time.Second) / time.Second)
// DefaultSyncInterval is the default interval for cluster sync.
DefaultSyncInterval = float64((30 * time.Minute) / time.Second)
DefaultSyncInterval = float64((5 * time.Second) / time.Second)
// MinSyncInterval is the minimum sync interval allowed.
MinSyncInterval = float64((1 * time.Second) / time.Second)