forked from Loopers-dev-lab/loop-pack-be-l2-vol3-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yml
More file actions
71 lines (63 loc) · 1.29 KB
/
application.yml
File metadata and controls
71 lines (63 loc) · 1.29 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
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
- kafka.yml
- logging.yml
- monitoring.yml
demo-kafka:
test:
topic-name: demo.internal.topic-v1
# 랭킹 시스템 설정
# 점수 공식: score += weight × 1 (이벤트당 고정, order-count 기반)
ranking:
weights:
view: 0.1
like: 0.2
unlike: -0.2
order: 0.6
key-prefix: "ranking:all"
ttl-days: 2
hourly-key-prefix: "ranking:hourly"
hourly-ttl-hours: 4
---
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