mirror of
https://github.com/minio/minio.git
synced 2025-11-11 06:20:14 -05:00
Update federation target to etcd/clientv3 (#6119)
With CoreDNS now supporting etcdv3 as the DNS backend, we can update our federation target to etcdv3. Users will now be able to use etcdv3 server as the federation backbone. Minio will update bucket data to etcdv3 and CoreDNS can pick that data up and serve it as bucket style DNS path.
This commit is contained in:
committed by
kannappanr
parent
adf7340394
commit
2aa18cafc6
23
vendor/github.com/grpc-ecosystem/go-grpc-middleware/util/backoffutils/backoff.go
generated
vendored
Normal file
23
vendor/github.com/grpc-ecosystem/go-grpc-middleware/util/backoffutils/backoff.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2016 Michal Witkowski. All Rights Reserved.
|
||||
// See LICENSE for licensing terms.
|
||||
|
||||
/*
|
||||
Backoff Helper Utilities
|
||||
|
||||
Implements common backoff features.
|
||||
*/
|
||||
package backoffutils
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"time"
|
||||
)
|
||||
|
||||
// JitterUp adds random jitter to the duration.
|
||||
//
|
||||
// This adds or substracts time from the duration within a given jitter fraction.
|
||||
// For example for 10s and jitter 0.1, it will returna time within [9s, 11s])
|
||||
func JitterUp(duration time.Duration, jitter float64) time.Duration {
|
||||
multiplier := jitter * (rand.Float64()*2 - 1)
|
||||
return time.Duration(float64(duration) * (1 + multiplier))
|
||||
}
|
||||
Reference in New Issue
Block a user