mirror of https://github.com/dapr/docs.git
Replaced wrong resiliency example definition
This commit is contained in:
parent
2ddafc2080
commit
4fe1ded85e
|
@ -61,27 +61,28 @@ Run the `order-processor` service alongside a Dapr sidecar. The Dapr sidecar the
|
||||||
metadata:
|
metadata:
|
||||||
name: myresiliency
|
name: myresiliency
|
||||||
scopes:
|
scopes:
|
||||||
- checkout
|
- order-processor
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
policies:
|
policies:
|
||||||
retries:
|
retries:
|
||||||
retryForever:
|
retryForever:
|
||||||
policy: constant
|
policy: constant
|
||||||
maxInterval: 5s
|
duration: 5s
|
||||||
maxRetries: -1
|
maxRetries: -1
|
||||||
|
|
||||||
circuitBreakers:
|
circuitBreakers:
|
||||||
simpleCB:
|
simpleCB:
|
||||||
maxRequests: 1
|
maxRequests: 1
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
trip: consecutiveFailures >= 5
|
trip: consecutiveFailures >= 5
|
||||||
|
|
||||||
targets:
|
targets:
|
||||||
apps:
|
components:
|
||||||
order-processor:
|
statestore:
|
||||||
retry: retryForever
|
outbound:
|
||||||
circuitBreaker: simpleCB
|
retry: retryForever
|
||||||
|
circuitBreaker: simpleCB
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue