-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Feature Request] Optimize indexing performance in replica shard #16949
Comments
@soosinha, I have't thought too much. In my side, It has a greater effect in replica indexing, of course including |
@kkewwei just out if curiosity how much latency improvement do you expect here if replicas are not creating their own |
@navneet1v, I am not sure either. In the scenario of frequent updates, I see that writing thread is actively engaged here. When indexing, it needs to query all segments of this shard to determine whether the particular doc exists and its version. I will try to use opensearch-benchmark to draw some preliminary conclusion. |
@soosinha, @navneet1v, I have done the opensearch-benchmark:
Hardware used: 8c32g, 2 data nodes in the cluster with jvm 8c10g.
|
Is your feature request related to a problem? Please describe
It's known that
indexingStrategyForOperation
will be invoked by both the primary and replica to ascertain theindex strategy
, which is very performance-intensive. Given that the data on primary and replica are same, the index strategy must be same between the two. Therefore, rather than the replica computing the strategy independently,index strategy
can be passed from primary to replica directly, to avoid this performance-intensive action, thereby improving the index performance of the replica.Related component
Indexing:Performance
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: