add resilience4j dettings
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
server:
|
||||
port: 5000
|
||||
|
||||
api:
|
||||
base-url: http://localhost:3001
|
||||
affinity-ids:
|
||||
@@ -9,4 +12,55 @@ api:
|
||||
max-connections: 500
|
||||
pending-acquire-max-count: 500
|
||||
pending-acquire-timeout: 250ms
|
||||
response-timeout: 3s
|
||||
response-timeout: 3s
|
||||
|
||||
|
||||
resilience4j:
|
||||
timelimiter:
|
||||
configs:
|
||||
default:
|
||||
timeout-duration: 2s
|
||||
cancel-running-future: true
|
||||
instances:
|
||||
affinityIds:
|
||||
base-config: default
|
||||
productDetail:
|
||||
base-config: default
|
||||
|
||||
circuitbreaker:
|
||||
configs:
|
||||
default:
|
||||
sliding-window-type: COUNT_BASED
|
||||
sliding-window-size: 20
|
||||
minimum-number-of-calls: 10
|
||||
failure-rate-threshold: 50
|
||||
wait-duration-in-open-state: 10s
|
||||
permitted-number-of-calls-in-half-open-state: 5
|
||||
automatic-transition-from-open-to-half-open-enabled: true
|
||||
ignore-exceptions:
|
||||
- com.example.productaffinity.domain.exception.ProductNotFoundException
|
||||
instances:
|
||||
similarIds:
|
||||
base-config: default
|
||||
|
||||
retry:
|
||||
configs:
|
||||
default:
|
||||
max-attempts: 2
|
||||
wait-duration: 100ms
|
||||
retry-exceptions:
|
||||
- org.springframework.web.reactive.function.client.WebClientRequestException
|
||||
instances:
|
||||
similarIds:
|
||||
base-config: default
|
||||
productDetail:
|
||||
base-config: default
|
||||
|
||||
bulkhead:
|
||||
instances:
|
||||
similarIds:
|
||||
max-concurrent-calls: 200
|
||||
max-wait-duration: 0ms
|
||||
productDetail:
|
||||
max-concurrent-calls: 500
|
||||
max-wait-duration: 0ms
|
||||
Reference in New Issue
Block a user