Introduce cluster.index.restrict.replication.type setting (#6028)

* Introduce cluster.index.restrict.replication.type setting

Signed-off-by: Suraj Singh <surajrider@gmail.com>

* Doc review

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

* Update _tuning-your-cluster/availability-and-recovery/segment-replication/index.md

Co-authored-by: Nathan Bower <nbower@amazon.com>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>

---------

Signed-off-by: Suraj Singh <surajrider@gmail.com>
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Co-authored-by: Fanit Kolchina <kolchfa@amazon.com>
Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com>
Co-authored-by: Nathan Bower <nbower@amazon.com>
This commit is contained in:
Suraj Singh 2024-02-01 11:09:11 -08:00 committed by GitHub
parent de8eb4ea77
commit 95a5f3e5a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -85,6 +85,16 @@ cluster.indices.replication.strategy: 'SEGMENT'
{% include copy.html %}
### Enforcing cluster-level replication type
If enabled, the `cluster.index.restrict.replication.type` setting requires newly created indexes to have a replication type specified in the `cluster.indices.replication.strategy` cluster setting. Requests that specify a different replication type are rejected. If `cluster.index restrict.replication.type` is disabled, you can choose a replication type on a per-index basis by specifying it in the `index.replication.type` setting.
You can define the `cluster.index.restrict.replication.type` setting in the `opensearch.yml` file as follows:
```yaml
cluster.index.restrict.replication.type: true
```
{% include copy.html %}
### Creating an index with document replication