-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Route stateless term vectors requests to promotable shards #94257
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
Conversation
Pinging @elastic/es-search (Team:Search) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm not super familiar with the cost of this request, but I assume we will eventually want to optimize this similar to GET #93976. Only performing on the promotable copy when required? |
@Tim-Brooks Thanks for the review. I can look into the optimization but this API isn't as sensitive as the GET API. |
💚 Backport successful
|
Like GET requests, we should also route term vectors requests to promotable copies in stateless. Relates elastic#93612
} else { | ||
return iterator; | ||
} | ||
return clusterService.operationRouting().useOnlyPromotableShardsForStateless(iterator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dnhatn are these changes to Get and MGet necessary for correctly routing term vector requests? Or is it just to make use of useOnlyPromotableShardsForStateless
? I need to change this to route gets to search shards, and I am wondering whether this is needed/shared with term vectors or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pxsalehi The term vectors API just uses useOnlyPromotableShardsForStateless
shards. Feel free to make changes to the get and mget APIs.
Like GET requests, we should also route term vectors requests to promotable copies in stateless.
Relates #93612