-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathapplication.yml
More file actions
98 lines (88 loc) · 2.12 KB
/
application.yml
File metadata and controls
98 lines (88 loc) · 2.12 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
server:
shutdown: graceful
tomcat:
threads:
max: 200 # 최대 워커 스레드 수 (default : 200)
min-spare: 10 # 최소 유지 스레드 수 (default : 10)
connection-timeout: 1m # 연결 타임아웃 (ms) (default : 60000ms = 1m)
max-connections: 8192 # 최대 동시 연결 수 (default : 8192)
accept-count: 100 # 대기 큐 크기 (default : 100)
keep-alive-timeout: 60s # 60s
max-http-request-header-size: 8KB
spring:
main:
web-application-type: servlet
application:
name: commerce-api
profiles:
active: local
config:
import:
- jpa.yml
- redis.yml
- logging.yml
- monitoring.yml
- kafka.yml
cloud:
openfeign:
client:
config:
default:
connectTimeout: 1000
readTimeout: 1000
resilience4j:
retry:
instances:
pg-client:
max-attempts: 2 # 1번만 재시도 (총 2회)
wait-duration: 500ms
retry-exceptions:
- java.io.IOException
- java.net.SocketTimeoutException
- feign.RetryableException
# 비즈니스 로직 에러(400 등)는 재시도 하지 않음
ignore-exceptions:
- com.loopers.support.error.CoreException
- feign.FeignException.BadRequest
circuitbreaker:
configs:
default:
register-health-indicator: true
instances:
pg-client:
sliding-window-type: COUNT_BASED
sliding-window-size: 10
minimum-number-of-calls: 5
# 500ms 이상 걸리면 '슬로우 콜'로 간주 (빠른 차단)
slow-call-duration-threshold: 500ms
slow-call-rate-threshold: 50
failure-rate-threshold: 40
wait-duration-in-open-state: 10s
permitted-number-of-calls-in-half-open-state: 3
springdoc:
use-fqn: true
swagger-ui:
path: /swagger-ui.html
---
spring:
config:
activate:
on-profile: local, test
---
spring:
config:
activate:
on-profile: dev
---
spring:
config:
activate:
on-profile: qa
---
spring:
config:
activate:
on-profile: prd
springdoc:
api-docs:
enabled: false