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

Memberlist gossip implementation #7521

Merged
merged 17 commits into from
Oct 11, 2019
Merged

Conversation

jacksontj
Copy link
Contributor

@jacksontj jacksontj commented Sep 4, 2019

As discussed in office hours last wee, this PR implements #7436 to swap gossip from mesh to memberlist (primarily due to scale issues with mesh -- #7427).

At this point it is functional (with some manual hacking to get the one dep PR in) -- and I have tested this on a cluster of ~800 nodes with no noticeable CPU usage increase from a ~5 node cluster.

TODO:

cc @justinsb

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 4, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @jacksontj. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 4, 2019
@jacksontj
Copy link
Contributor Author

^^ That is an implementation of the flags -- so barring the upstream PR and any review notes this should be ready to go (I'll do another round of testing on my dev cluster to verify)

@jacksontj jacksontj force-pushed the memberlist branch 3 times, most recently from 13c994f to 7d5b736 Compare September 4, 2019 22:26
@jacksontj
Copy link
Contributor Author

Upstream AM decided that I should just fork the library, which I have done. Since I had the fork already I changed some of the deps to reduce the vendor changes in this PR as well.

@jacksontj jacksontj force-pushed the memberlist branch 6 times, most recently from 5f44c2b to 66a73f5 Compare September 5, 2019 17:07
@rifelpet
Copy link
Member

rifelpet commented Sep 6, 2019

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 6, 2019
@jacksontj
Copy link
Contributor Author

I have identified most of the issues, I have another branch (based on 1.12) which is working -- I have to port those changes forward (should be able to do that monday).

In those changes I have to configure the primary+secondary gossip for both protokube and dns-controller. Unfortunately dns-controller is assuming the port for the gossip seed -- so right now I have it using the protokube gossip config to determine the port -- which means you have to not apply the change from 2 -> 1 gossip on the dns-controller until nothing is remaining on the old gossip. As of now the controller isn't auto-deploying on kops edit anyways -- so maybe this is okay? If not then I'll need to add a Seed field to the GossipConfig struct -- which would let you set the seed port separately on the dns-controller.

Thoughts?

@mikesplain mikesplain added this to the 1.15 milestone Sep 7, 2019
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 9, 2019
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 9, 2019
@jacksontj
Copy link
Contributor Author

Just updated this PR with the final changes required to get it working on my test cluster.

The upgrade path is:

  1. double gossip config on master
  2. double gossip config on dns-controller
  3. single new gossip config on nodes (roll whole cluster)
  4. single new gossip config on masters
  5. single new gossip config on dns-controller

Last questions:

  • dns-controller apply is still manual
  • dns-controller -- seed URLs are determined from the other gossip config, so if this starts auto-applying from kops we'll need to add more options to define the seed for the controller (right now its hard-coded).

@jacksontj
Copy link
Contributor Author

@justinsb friendly reminder bump :)

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 10, 2019
@justinsb
Copy link
Member

/retest

At least the bazel logs were missing, indicating a bad run.

@justinsb
Copy link
Member

OK - as we want to get this into 1.16 (I believe), going to merge!

/approve
/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

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

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:

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 11, 2019
@jacksontj jacksontj changed the title (WIP) Memberlist gossip implementation Memberlist gossip implementation Oct 11, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 11, 2019
@k8s-ci-robot k8s-ci-robot merged commit a832629 into kubernetes:master Oct 11, 2019
@jacksontj jacksontj deleted the memberlist branch October 11, 2019 18:45
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants