Skip to content
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

Configuring default replica count for new indices #5457

Open
gbbafna opened this issue Dec 6, 2022 · 1 comment
Open

Configuring default replica count for new indices #5457

gbbafna opened this issue Dec 6, 2022 · 1 comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing

Comments

@gbbafna
Copy link
Collaborator

gbbafna commented Dec 6, 2022

Is your feature request related to a problem? Please describe.

In OpenSearch default replica count is always 1. There is no mechanism to configure the default value.

In absence of same, user will need to provide replica count while creating index / index template .

Describe the solution you'd like

In scenarios where cluster.routing.allocation.awareness.force is present , we can use the total awareness attribute value count as an indicator for total copies.

The downside of this solution is it can cause a change in behavior for existing customers using cluster.routing.allocation.awareness.force and having indices with lower replica count. To prevent this , we will need to introduce another cluster level setting use_force_zone_for_replica which can be false by default.

Describe alternatives you've considered

We can create a cluster level setting default_replica_count which can be used to tweak the default value of 1. The default value of this setting will be 1 .

Additional context
Add any other context or screenshots about the feature request here.

@gbbafna gbbafna added enhancement Enhancement or improvement to existing feature or request untriaged labels Dec 6, 2022
@minalsha minalsha added the Indexing Indexing, Bulk Indexing and anything related to indexing label Jan 9, 2023
@anasalkouz
Copy link
Member

@gbbafna I see your PR already merged, any remaining effort? otherwise, feel free to close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing
Projects
None yet
Development

No branches or pull requests

3 participants