File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Parameters:
12
12
AllowedPattern : ^[a-zA-Z0-9]+[a-zA-Z0-9-]+[a-zA-Z0-9]+$
13
13
NumInstances :
14
14
Type : Number
15
- Default : 2
15
+ Default : 3
16
16
17
17
Resources :
18
18
WarmerLambdaLogGroup :
@@ -67,7 +67,7 @@ Resources:
67
67
Description : !Sub "Lambda warmer for function ${FunctionToWarm}"
68
68
FunctionName : !Sub "${LambdaFunctionNameBase}-${FunctionToWarm}"
69
69
Handler : lambda.handler
70
- MemorySize : 128
70
+ MemorySize : 512
71
71
Role : !GetAtt WarmerLambdaIAMRole.Arn
72
72
Timeout : 15
73
73
Environment :
Original file line number Diff line number Diff line change 1
- import { LambdaClient , InvokeCommand , LogType } from "@aws-sdk/client-lambda" ;
1
+ import { LambdaClient , InvokeCommand } from "@aws-sdk/client-lambda" ;
2
2
import { TextDecoder } from "util" ;
3
3
4
4
const lambdaClient = new LambdaClient ( { } ) ;
5
5
const textDecoder = new TextDecoder ( ) ;
6
6
7
- interface WarmerEvent {
8
- lambdaName : string ;
9
- numInstances : number ;
10
- }
11
-
12
7
/**
13
8
* Invokes a batch of lambdas concurrently and returns the unique instance IDs found.
14
9
*/
@@ -64,8 +59,8 @@ export const handler = async (event: {}) => {
64
59
}
65
60
66
61
const numInstances = parseInt ( numInstancesStr , 10 ) ;
67
- // Default to 2 waves if MAX_WAVES is not set
68
- const maxWaves = parseInt ( maxWavesStr || "2 " , 10 ) ;
62
+ // Default to 5 waves if MAX_WAVES is not set
63
+ const maxWaves = parseInt ( maxWavesStr || "5 " , 10 ) ;
69
64
70
65
let totalInvocations = 0 ;
71
66
let wavesCompleted = 0 ;
You can’t perform that action at this time.
0 commit comments