Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove gossip connection limit entirely #5486

Merged
merged 1 commit into from
Jul 23, 2018

Conversation

justinsb
Copy link
Member

This simply turns off gossip connection limits, so we shouldn't ever have to manually configure them.

Follow on to #5077

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 21, 2018
@@ -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 // 9 means no limit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a typo?

9 means no limit?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you - will fix!

This simply turns off gossip connection limits, so we shouldn't ever have to manually configure them.

Follow on to kubernetes#5077
@@ -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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to still have the ENV var at all? Or are we expecting to have user limit the number of peers each node has in case they run into issues and the gossip pool of each node becomes too large?

@mikesplain
Copy link
Contributor

mikesplain commented Jul 23, 2018

/lgtm

I’m never opposed to more config values. Considering it’s changing existing values I think we’re fine.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 23, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: justinsb, mikesplain

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [justinsb,mikesplain]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mikesplain
Copy link
Contributor

/retest

@k8s-ci-robot k8s-ci-robot merged commit 25e0f37 into kubernetes:master Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants