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

Fix frequent kubernetes endpoint updates during cluster start #17920

Merged
merged 1 commit into from
Dec 2, 2015

Conversation

abutcher
Copy link
Contributor

checkEndpointSubsetFormat ensures that,

  1. the current master's IP is in the list of addresses
  2. the number of IPs in the list exactly matches the master count

This is problematic while masters are in the process of starting because it causes frequent updates to the kubernetes endpoints until all masters have started and added themselves to the list.

checkEndpointSubsetFormat should report success if the current master's IP is found and the count of addresses is less than or equal to the expected count.

/cc @liggitt
openshift/origin#6073

@k8s-bot
Copy link

k8s-bot commented Nov 29, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot
Copy link

Labelling this PR as size/S

@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 29, 2015
@k8s-bot
Copy link

k8s-bot commented Nov 29, 2015

Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist")

If this message is too spammy, please complain to ixdy.

@k8s-github-robot
Copy link

Labelling this PR as size/M

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 30, 2015
@liggitt
Copy link
Member

liggitt commented Nov 30, 2015

@k8s-bot ok to test

@liggitt
Copy link
Member

liggitt commented Nov 30, 2015

LGTM. would like a second, though.

@k8s-bot
Copy link

k8s-bot commented Nov 30, 2015

GCE e2e test build/test passed for commit 94a7f3a7f5894328cbc74fd22b3876a8bd17bf66.

@k8s-github-robot
Copy link

The author of this PR is not in the whitelist for merge, can one of the admins add the 'ok-to-merge' label?

@brendandburns
Copy link
Contributor

I think I have managed to convince myself that this will work. If there are fewer than expected, there is no truncation, and so the trimming stuff shouldn't be necessary.

@brendandburns
Copy link
Contributor

Please update the comment above the function to clarify the return values.

@abutcher
Copy link
Contributor Author

abutcher commented Dec 1, 2015

@brendandburns Comment updated lmk if that format is okay

…s than or equal to master count.

checkEndpointSubsetFormat ensures that,
1. the current master's IP is in the list of addresses
2. the number of IPs in the list exactly matches the master count

This is problematic while masters are in the process of starting
because it causes frequent updates to the kubernetes endpoints until
all masters have started and added themselves to the list.

checkEndpointSubsetFormat should report success if the current
master's IP is found and the count of addresses is less than or equal
to the expected count.
@k8s-bot
Copy link

k8s-bot commented Dec 1, 2015

GCE e2e test build/test passed for commit 36d4c8b7b1176197d4bdc78573f27c6ad68e4fd0.

@k8s-bot
Copy link

k8s-bot commented Dec 1, 2015

GCE e2e test build/test passed for commit 101a992.

@brendandburns brendandburns added ok-to-merge lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-ok-to-merge labels Dec 2, 2015
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 2, 2015

GCE e2e test build/test passed for commit 101a992.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Dec 2, 2015
@k8s-github-robot k8s-github-robot merged commit 60925e6 into kubernetes:master Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants