Skip to content

Commit

Permalink
Only setting replicas to 1 when index is searched
Browse files Browse the repository at this point in the history
  • Loading branch information
masseyke committed Sep 25, 2023
1 parent 46f9d57 commit 3c6a6da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,18 +574,14 @@ setup:
managed: true
template:
settings:
number_of_replicas: 1
number_of_replicas: 0
data_stream: {}

- do:
indices.create_data_stream:
name: logs-foobar
- is_true: acknowledged

- do:
cluster.health:
wait_for_status: green

- do:
indices.get_data_stream:
name: "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
index_patterns: [ log-* ]
template:
settings:
index.number_of_replicas: 1
index.number_of_replicas: 0
data_stream: { }

- do:
Expand Down Expand Up @@ -210,7 +210,7 @@
index_patterns: [ log-* ]
template:
settings:
index.number_of_replicas: 1
index.number_of_replicas: 0
data_stream: { }

- do:
Expand Down

0 comments on commit 3c6a6da

Please sign in to comment.