Repository navigation
Wait 30s between zoekt-searcher restarts in a rolling update - #1044
Closed
michaellzc wants to merge 1 commit into
Closed
michaellzc wants to merge 1 commit into
michaellzc wants to merge 1 commit into
Conversation
Restarting the next searcher as soon as the previous one turned Ready left searches incomplete for a few seconds. Amp-Thread-ID: https://ampcode.com/threads/T-bdf5456f-9405-41b4-9031-b61c552c89a6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a rolling update, the zoekt-searcher StatefulSet restarted the next searcher as soon as the previous one turned Ready. During an upgrade on a dev Cloud instance that left 15 searches incomplete over 4 seconds. This sets
minReadySeconds: 30on the StatefulSet so frontends are routing to the restarted searcher before the next one stops. It's stacked on #1027.Test plan
On
mlzc-zoekt-cont-eval, with search load running during the soak, I forced a rollout of every service twice. The first run (nominReadySeconds) had 15 incomplete searches, all at the momentzoekt-searcher-0stopped right afterzoekt-searcher-1turned Ready. The second run, withminReadySeconds: 30patched onto the live StatefulSet, had 0. That's one trial each, so 30 s is chosen to be safe, not tuned.helm unittestasserts the field is rendered.Opened from Amp thread https://ampcode.com/threads/T-bdf5456f-9405-41b4-9031-b61c552c89a6