mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
docs: add missing content for Automatic Retry with a limit section (#27092)
Signed-off-by: nitishfy <justnitish06@gmail.com>
This commit is contained in:
parent
c52bf66380
commit
fb1b240c9e
1 changed files with 20 additions and 0 deletions
|
|
@ -94,6 +94,26 @@ spec:
|
|||
> [!NOTE]
|
||||
> Disabling self-heal does not guarantee that live cluster changes in multi-source applications will persist. Although one of the resource's sources remains unchanged, changes in another can trigger `autosync`. To handle such cases, consider disabling `autosync`.
|
||||
|
||||
## Automatic Retry with a limit
|
||||
|
||||
Argo CD can automatically retry a failed sync operation using exponential backoff. To enable, configure the `retry` field in the sync policy:
|
||||
|
||||
```yaml
|
||||
spec:
|
||||
syncPolicy:
|
||||
retry:
|
||||
limit: 5 # number of retries (-1 for unlimited retries)
|
||||
backoff:
|
||||
duration: 5s # base duration between retries
|
||||
factor: 2 # exponential backoff factor
|
||||
maxDuration: 3m # maximum duration between retries
|
||||
```
|
||||
|
||||
- `limit`: number of retry attempts. Set to `-1` for unlimited retries.
|
||||
- `backoff.duration`: base wait time before the first retry.
|
||||
- `backoff.factor`: multiplier applied after each failed attempt.
|
||||
- `backoff.maxDuration`: maximum wait time between retries, regardless of the number of attempts.
|
||||
|
||||
## Automatic Retry Refresh on new revisions
|
||||
|
||||
This feature allows users to configure their applications to refresh on new revisions when the current sync is retrying. To enable automatic refresh during sync retries, run:
|
||||
|
|
|
|||
Loading…
Reference in a new issue