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,13 +9,11 @@ services:
99 ports :
1010 - " 8080:8080"
1111
12- # t3.micro 자원 컷 (1GB 메모리 기준)
13- # - vCPU는 2개라 cpus 1.0은 그대로 둬도 됨
14- # - 메모리는 OS + Docker 여유 고려해서 컨테이너 합산 ~800m 정도로 맞춤
12+ # t3.small 자원 컷 (기존 값 유지)
1513 cpus : " 1.0"
1614 cpu_shares : 768
17- mem_limit : " 640m "
18- mem_reservation : " 512m "
15+ mem_limit : " 1100m "
16+ mem_reservation : " 768m "
1917
2018 env_file :
2119 - /run/saerok/env.prod
@@ -27,10 +25,10 @@ services:
2725 SPRING_PROFILES_ACTIVE : " prod"
2826 JAVA_OPTS : >-
2927 -Duser.timezone=Asia/Seoul
30- -Xms256m -Xmx320m
31- -XX:MaxMetaspaceSize=128m
32- -XX:MaxDirectMemorySize=32m
33- -XX:ReservedCodeCacheSize=64m
28+ -Xms256m -Xmx640m
29+ -XX:MaxMetaspaceSize=192m
30+ -XX:MaxDirectMemorySize=48m
31+ -XX:ReservedCodeCacheSize=96m
3432 -XX:+UseG1GC
3533 -XX:+ExitOnOutOfMemoryError
3634 # Redis 연결 정보 (prod에서도 명시)
@@ -66,7 +64,7 @@ services:
6664 - " 64mb"
6765 # 캐시 특성: 메모리 상한과 축출 정책
6866 - " --maxmemory"
69- - " 128mb "
67+ - " 256mb "
7068 - " --maxmemory-policy"
7169 - " allkeys-lru"
7270 volumes :
@@ -77,8 +75,8 @@ services:
7775 timeout : 3s
7876 retries : 20
7977 start_period : 5s
80- cpus : " 0.3 "
81- mem_limit : " 256m "
78+ cpus : " 0.4 "
79+ mem_limit : " 384m "
8280
8381volumes :
8482 redis-data :
You can’t perform that action at this time.
0 commit comments