Merge pull request #840 from awslabs/dev

feat: improved lambda memory size
pull/844/head
Elon N 2024-07-03 09:16:25 +08:00 committed by GitHub
commit 5ab3339d94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 16 additions and 16 deletions

View File

@ -232,7 +232,7 @@ export class CreateCheckPointApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.role,
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
environment: {
CHECKPOINT_TABLE: this.checkpointTable.tableName,
@ -252,7 +252,7 @@ export class CreateCheckPointApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.role,
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.mebibytes(10240),
environment: {

View File

@ -305,7 +305,7 @@ export class UpdateCheckPointApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.role,
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.mebibytes(10240),
environment: {
@ -324,7 +324,7 @@ export class UpdateCheckPointApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.role,
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
environment: {
CHECKPOINT_TABLE: this.checkpointTable.tableName,

View File

@ -256,7 +256,7 @@ export class CreateExecuteApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.iamRole(),
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.gibibytes(10),
environment: {

View File

@ -118,7 +118,7 @@ export class DeleteExecutesApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.iamRole(),
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.gibibytes(10),
environment: {

View File

@ -136,7 +136,7 @@ export class MergeExecuteApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.iamRole(),
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.gibibytes(10),
environment: {

View File

@ -328,7 +328,7 @@ export class CreateInferenceJobApi {
runtime: Runtime.PYTHON_3_10,
index: 'create_inference_job.py',
handler: 'handler',
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.gibibytes(10),
timeout: Duration.seconds(900),

View File

@ -184,7 +184,7 @@ export class StartInferenceJobApi {
runtime: Runtime.PYTHON_3_10,
index: 'start_inference_job.py',
handler: 'handler',
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.gibibytes(10),
timeout: Duration.seconds(900),

View File

@ -349,7 +349,7 @@ export class CreateTrainingJobApi {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.lambdaRole(),
memorySize: 3070,
memorySize: 3000,
tracing: Tracing.ACTIVE,
environment: {
TRAIN_TABLE: this.props.trainTable.tableName,

View File

@ -196,7 +196,7 @@ export class ComfyApiStack extends Construct {
runtime: lambda.Runtime.PYTHON_3_10,
handler: 'handler',
index: 'execute_async_events.py',
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.gibibytes(10),
timeout: Duration.seconds(900),

View File

@ -33,7 +33,7 @@ export class EndpointsCloudwatchEvents {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.iamRole(),
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
layers: [this.layer],
});

View File

@ -103,7 +103,7 @@ export class SagemakerEndpointEvents {
handler: 'handler',
timeout: Duration.seconds(900),
role: this.iamRole(),
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
layers: [this.layer],
});

View File

@ -154,7 +154,7 @@ export class Inference {
runtime: lambda.Runtime.PYTHON_3_10,
handler: 'handler',
index: 'inference_async_events.py',
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
ephemeralStorageSize: Size.gibibytes(10),
timeout: Duration.seconds(900),

View File

@ -35,7 +35,7 @@ export class ResourceProvider extends Construct {
},
timeout: Duration.seconds(900),
role: this.role,
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
environment: {
ROLE_ARN: this.role.roleArn,

View File

@ -32,7 +32,7 @@ export class ResourceWaiter extends Construct {
},
timeout: Duration.seconds(900),
role: role,
memorySize: 3070,
memorySize: 3000,
tracing: aws_lambda.Tracing.ACTIVE,
});