Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase memory and timeout configuration for the transform lambda #64

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

bsweger
Copy link
Collaborator

@bsweger bsweger commented Nov 15, 2024

Addresses hubverse-org/hubverse-transform#32

We started seeing out of memory errors in the transform lambda when onboarding the variant-nowcast-hub. This is the first time we've onboarded a hub to S3 that includes sample data, and the default memory allocation of 128MB isn't sufficient.

For example, a single UMass submission is 27MB in memory after the parquet file is read by pyarrow. We can and should investigate ways to make the transform process better about memory, but let's increase the memory now to ensure we're in a good place until then.

We started seeing out of memory errors in the transform lambda
when onboarding the variant-nowcast-hub. This is the first time
we've onboarded a hub to S3 that includes sample data, and it
looks like the default memory allocation of 128MB isn't
sufficient.

For example, a single UMass submission is 27MB in memory after
the parquet file is read by pyarrow. We can and should
investigate ways to make the transform process better about
memory, but let's increase the memory now to ensure we're
in a good place until then.
Copy link

pulumi bot commented Nov 15, 2024

🍹 The Update (preview) for hubverse/hubverse-aws/hubverse was successful.

Resource Changes

    Name                             Type                          Operation
~   hubverse-transform-model-output  aws:lambda/function:Function  update

Copy link

🍹 preview on hubverse-aws/hubverse/hubverse-aws/hubverse

Pulumi report
   Previewing update (hubverse/hubverse)

View Live: https://app.pulumi.com/hubverse/hubverse-aws/hubverse/previews/d90a0787-dabe-4cc9-89b6-e33ecf0bc950

@ Previewing update.......
Downloading plugin aws-6.29.0: starting
@ Previewing update.....
Downloading plugin aws-6.29.0: done
Installing plugin aws-6.29.0: starting
@ Previewing update.......
Installing plugin aws-6.29.0: done

@ Previewing update.....
   pulumi:pulumi:Stack hubverse-aws-hubverse running 
~  aws:lambda:Function hubverse-transform-model-output update [diff: ~memorySize,timeout]
@ Previewing update......
   pulumi:pulumi:Stack hubverse-aws-hubverse  
Resources:
   ~ 1 to update
   76 unchanged

   

@@ -169,7 +169,8 @@ def create_transform_lambda(
s3_bucket=s3_bucket,
s3_key=s3_key,
tags={"hub": "hubverse"},
timeout=210,
memory_size=500,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

500 = 500 MB
600 = 600 seconds

@nickreich nickreich self-requested a review November 15, 2024 17:54
@nickreich nickreich merged commit ecab237 into main Nov 15, 2024
4 checks passed
@nickreich nickreich deleted the bsweger/increase-lambda-resources/32 branch November 15, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants