-
Notifications
You must be signed in to change notification settings - Fork 2k
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] Make segment replication the default for 3.0 #17162
Comments
Thanks @andrross
The default number of replica is one, so the default option should work seamlessly
+1
The |
@Bukhtawar We definitely can change the semantics of this option. The question is really whether this is good enough. There likely are use cases where its necessary to know all primaries and replicas are up-to-date with respect to a specific write, and today we don't really have any mechanism to do that with segment replication. |
@andrross @mch2 @Bukhtawar A bit tangential to this discussion but are we also thinking of removing the mixed mode (SegRep + DocRep) cluster from 3.0? |
This is true, but you can still fairly easily overload a node with multiple primaries actively taking writes. In the absence of any heat based allocation or even enforcing a hard primary limit per node the experience here isn't great.
Any particular reason to take that option away? I think its a reasonable fall back for node-node users wanting strong reads on an index (system indices are common here) other than routing to primaries. I wouldn't be opposed to making segrep the default, but I think we need to improve the out of the box experience before that happens. |
Is your feature request related to a problem? Please describe
Segment replication was introduced in the 2.x line as an alternative to document replication. It can offer substantial performance benefits by reducing the amount of CPU-intensive indexing work that has to happen on the cluster.
Describe the solution you'd like
The default indexing method for new indexes in 3.0+ versions of OpenSearch should be
SEGMENT
instead ofDOCUMENT
.Related component
Indexing:Replication
Describe alternatives you've considered
Do nothing; keep document replication as the default.
Additional context
Segment replication is the only option when using remote store and is being used by remote store-based offerings of Amazon OpenSearch Service. However, the node-to-node variant of segment replication likely has less real world production usage. Some things to consider before making this change are:
wait_for=refresh
are weird today. With document replication that means your write will be searchable after the index call completes. With segment replication it means the write will be searchable on the primary shard only, not replicas.The text was updated successfully, but these errors were encountered: