Exclude scheduled-to-stop members from resolver availability#10919
Draft
prathyushpv wants to merge 1 commit into
Draft
Exclude scheduled-to-stop members from resolver availability#10919prathyushpv wants to merge 1 commit into
prathyushpv wants to merge 1 commit into
Conversation
03136fd to
81038c1
Compare
AvailableMembers/AvailableMemberCount already excluded draining hosts; extend that to hosts with a future stopAt label, via a shared isLeaving predicate. Such a host has announced its departure and reports itself NOT_SERVING, so it should not be offered for new requests, the same way a draining frontend isn't. The consistent-hash lookup ring is left untouched so ownership transfers once, at the scheduled eviction.
81038c1 to
e78d370
Compare
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.
What changed?
AvailableMembers()/AvailableMemberCount()already excludeddraininghosts; extend that to hosts with a futurestopAtlabel. The consistent-hashLookup()ring is left untouched.Why?
A gracefully-stopping history/matching host sets a future
stopAtand reports itselfNOT_SERVING, but stays listed inAvailableMembers(). The frontend deep health check pings those peers, they fail, and a new pod's readiness can flip toNOT_SERVING, extending the rollout. An announced-departing host shouldn't count as available — same asdraining.Leaving hosts stay in the lookup ring rather than being removed early: dropping them diverges ring views across nodes and causes
ShardOwnershipLostchurn during the drain window. Coordinated eviction (#5431) already drops a host from every ring at once, at itsstopAt.How did you test it?
Potential risks
AvailableMemberCount()feeds per-host rate limits, so remaining hosts get slightly more quota during the drain window — the same trade-off already accepted fordraining(#5889), just applied to more hosts.