-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-catalog.yml
74 lines (69 loc) · 1.64 KB
/
api-catalog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
server:
port: ${PORT:0}
spring:
application:
name: api-catalog
zipkin:
baseUrl: http://localhost:9411/
enabled: true
data:
mongodb:
database: test
port: 27017
rabbitmq:
username: guest
password: guest
host: localhost
port: 5672
info:
application:
name: api-catalog
management:
endpoints:
web:
exposure:
include: "*"
eureka:
healthcheck:
enabled: true
instance:
hostname: localhost
instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}}
client:
registerWithEureka: true
fetchRegistry: true
serviceUrl:
defaultZone: http://localhost:8761/eureka/
resilience4j:
retry:
configs:
default:
max-retry-attempts: 3
wait-duration: 1s
retry-exceptions:
- java.io.IOException
- java.net.SocketTimeoutException
instances:
retryFindByGenre:
base-config: default
max-retry-attempts: 5
wait-duration: 2s
retry-exceptions:
- java.net.ConnectException
circuitbreaker:
configs:
default:
register-health-indicator: true
sliding-window-size: 10
minimum-number-of-calls: 5
permitted-number-of-calls-in-half-open-state: 3
wait-duration-in-open-state: 30s
automatic-transition-from-open-to-half-open-enabled: true
failure-rate-threshold: 50
instances:
findByGenre:
base-config: default
sliding-window-type: TIME_BASED
sliding-window-size: 10
wait-duration-in-open-state: 1m
failure-rate-threshold: 20