Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Wait 5 seconds to let pod connect before rolling next pod #3235

Merged
merged 1 commit into from
Mar 8, 2018
Merged

Conversation

bboreham
Copy link
Contributor

During a rolling update we don't want Kubernetes to go as fast as it can across nodes, because each node will have a short interruption as iptables rules are recreated.

I think this will also have the effect of slowing down a first install, but hopefully people can wait a few extra seconds.

I picked 5 seconds somewhat arbitrarily; the setting may need more experimentation.

Note we don't specify a readiness check at the moment, so Kubernetes equates "running" with "ready". If the pod crashes immediately it will not be ready.

@bboreham bboreham added this to the 2.2.1 milestone Jan 31, 2018
Copy link
Collaborator

@mikebryant mikebryant left a comment

Choose a reason for hiding this comment

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

For info, we set minReadySeconds: 10 in April last year, and haven't observed any issues with that.

@mikebryant
Copy link
Collaborator

I don't think it'll slow down an initial install, when we deploy weave for the first time, all pods are created immediately - it's only when it's doing a rolling update does it start caring that they're up for long enough before it destroys the next pod

@brb brb merged commit fff656f into 2.2 Mar 8, 2018
@bboreham bboreham deleted the wait-5-sec branch April 3, 2018 08:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants