File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ services:
99 ports :
1010 - " 8080:8080"
1111
12- # t3.small 자원 컷 (기존 값 유지)
12+ # t3.micro 자원 컷 (1GB 메모리 기준)
13+ # - vCPU는 2개라 cpus 1.0은 그대로 둬도 됨
14+ # - 메모리는 OS + Docker 여유 고려해서 컨테이너 합산 ~800m 정도로 맞춤
1315 cpus : " 1.0"
1416 cpu_shares : 768
15- mem_limit : " 1100m "
16- mem_reservation : " 768m "
17+ mem_limit : " 640m "
18+ mem_reservation : " 512m "
1719
1820 env_file :
1921 - /run/saerok/env.prod
@@ -25,10 +27,10 @@ services:
2527 SPRING_PROFILES_ACTIVE : " prod"
2628 JAVA_OPTS : >-
2729 -Duser.timezone=Asia/Seoul
28- -Xms256m -Xmx640m
29- -XX:MaxMetaspaceSize=192m
30- -XX:MaxDirectMemorySize=48m
31- -XX:ReservedCodeCacheSize=96m
30+ -Xms256m -Xmx320m
31+ -XX:MaxMetaspaceSize=128m
32+ -XX:MaxDirectMemorySize=32m
33+ -XX:ReservedCodeCacheSize=64m
3234 -XX:+UseG1GC
3335 -XX:+ExitOnOutOfMemoryError
3436 # Redis 연결 정보 (prod에서도 명시)
@@ -64,7 +66,7 @@ services:
6466 - " 64mb"
6567 # 캐시 특성: 메모리 상한과 축출 정책
6668 - " --maxmemory"
67- - " 256mb "
69+ - " 128mb "
6870 - " --maxmemory-policy"
6971 - " allkeys-lru"
7072 volumes :
@@ -75,8 +77,8 @@ services:
7577 timeout : 3s
7678 retries : 20
7779 start_period : 5s
78- cpus : " 0.4 "
79- mem_limit : " 384m "
80+ cpus : " 0.3 "
81+ mem_limit : " 256m "
8082
8183volumes :
8284 redis-data :
You can’t perform that action at this time.
0 commit comments