File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export const createECSfargateService = ({
48
48
image : imageUri ,
49
49
cpu : option . cpu ,
50
50
memory : option . memory ,
51
+ memoryReservation : option . memoryReservation ,
51
52
essential : true ,
52
53
portMappings : [ { targetGroup : targetGroup } ] ,
53
54
environment : [
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const webEcsOption: EcsOption = {
4
4
desiredCount : ENV . isProduction ? 2 : 1 ,
5
5
cpu : ENV . isProduction ? 1024 : 512 ,
6
6
memory : ENV . isProduction ? 2048 : 1024 ,
7
+ memoryReservation : 512 ,
7
8
maxCapacity : 12 ,
8
9
minCapacity : ENV . isProduction ? 2 : 1 ,
9
10
}
@@ -12,14 +13,16 @@ const serverEcsOption: EcsOption = {
12
13
desiredCount : ENV . isProduction ? 2 : 1 ,
13
14
cpu : ENV . isProduction ? 1024 * 0.75 : 512 ,
14
15
memory : 1024 ,
16
+ memoryReservation : 512 ,
15
17
maxCapacity : 12 ,
16
18
minCapacity : ENV . isProduction ? 2 : 1 ,
17
19
}
18
20
19
21
const cronEcsOption : EcsOption = {
20
- desiredCount : 1 ,
22
+ desiredCount : ENV . isProduction ? 1 : 0 ,
21
23
cpu : ENV . isProduction ? 1024 : 512 ,
22
- memory : 1024 ,
24
+ memory : 512 ,
25
+ memoryReservation : 512 ,
23
26
maxCapacity : 1 ,
24
27
minCapacity : ENV . isProduction ? 1 : 0 ,
25
28
}
@@ -34,6 +37,7 @@ type EcsOption = {
34
37
desiredCount : number
35
38
cpu : number
36
39
memory : number
40
+ memoryReservation : number
37
41
maxCapacity : number
38
42
minCapacity : number
39
43
}
You can’t perform that action at this time.
0 commit comments