Skip to content

Commit 6485dae

Browse files
committed
[DOCS] Adds delay_on_retry docs
1 parent a9d114b commit 6485dae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/advanced-config.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ These two parameters can also be used together:
259259
Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], retry_on_status: [502, 503], retry_on_failure: 10)
260260
```
261261

262+
You can also set a `delay_on_retry` value in milliseconds. This will add a delay to wait between retries:
263+
264+
```ruby
265+
Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], retry_on_failure: 5, delay_on_retry: 1000)
266+
```
262267

263268
[discrete]
264269
[[reload-hosts]]

0 commit comments

Comments
 (0)