Skip to content

Instantly share code, notes, and snippets.

@krnbr
Created September 1, 2021 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krnbr/e3b1855e711fdb7a8b31cf53935c00cf to your computer and use it in GitHub Desktop.
Save krnbr/e3b1855e711fdb7a8b31cf53935c00cf to your computer and use it in GitHub Desktop.
application.yaml for the article
resilience4j:
circuitbreaker:
instances:
mockService:
slidingWindowSize: 3
slidingWindowType: COUNT_BASED
#waitDurationInOpenState: 5
waitInterval: 10000
failureRateThreshold: 50
permittedNumberOfCallsInHalfOpenState: 5
registerHealthIndicator: true
#register-health-indicator: true
allowHealthIndicatorToFail: true
configs:
default:
registerHealthIndicator: true
management.health.circuitbreakers.enabled: true
management:
endpoint:
health:
show-details: always
downstream:
mock:
base: http://localhost:63553/
path: v1/mock/downstream
url: ${downstream.mock.base}${downstream.mock.path}
server:
port: 63080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment