Skip to content

Wait 30s between zoekt-searcher restarts in a rolling update - #1044

Closed
michaellzc wants to merge 1 commit into
indexed-search-continuityfrom
zoekt-searcher-min-ready
Closed

michaellzc wants to merge 1 commit into
indexed-search-continuityfrom
zoekt-searcher-min-ready

Conversation

@michaellzc

Copy link
Copy Markdown
Member

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: 30 on 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 (no minReadySeconds) had 15 incomplete searches, all at the moment zoekt-searcher-0 stopped right after zoekt-searcher-1 turned Ready. The second run, with minReadySeconds: 30 patched onto the live StatefulSet, had 0. That's one trial each, so 30 s is chosen to be safe, not tuned. helm unittest asserts the field is rendered.

Opened from Amp thread https://ampcode.com/threads/T-bdf5456f-9405-41b4-9031-b61c552c89a6

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
@michaellzc
michaellzc requested a review from eseliger December 2, 2026 23:22
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

@michaellzc michaellzc closed this Dec 2, 2026
@eseliger
eseliger deleted the zoekt-searcher-min-ready branch December 2, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant