Skip to content

Commit

Permalink
Merge pull request #5486 from justinsb/no_gossip_limits
Browse files Browse the repository at this point in the history
Remove gossip connection limit entirely
  • Loading branch information
k8s-ci-robot authored Jul 23, 2018
2 parents 8d52e31 + 9b70f75 commit 25e0f37
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions protokube/pkg/gossip/mesh/gossip.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ type MeshGossiper struct {

func NewMeshGossiper(listen string, channelName string, nodeName string, password []byte, seeds gossip.SeedProvider) (*MeshGossiper, error) {

connLimit := 64
connLimit := 0 // 0 means no limit
gossipDnsConnLimit := os.Getenv("GOSSIP_DNS_CONN_LIMIT")
if gossipDnsConnLimit != "" {
limit, err := strconv.Atoi(gossipDnsConnLimit)
if err != nil {
return nil, fmt.Errorf("cannot parse env GOSSIP_DNS_CONN_LIMIT value: %v, err:%v", gossipDnsConnLimit, err)
// Continue with the default value
glog.Warningf("cannot parse env GOSSIP_DNS_CONN_LIMIT value %q", gossipDnsConnLimit)
} else {
connLimit = limit
}
connLimit = limit
}

glog.Infof("gossip dns connection limit is:%d", connLimit)
Expand Down

0 comments on commit 25e0f37

Please sign in to comment.