awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
928 stars 402 forks source link

CatalogUpdaterLambdaFunction times out due to low memory #489

Open visionhealth opened 3 years ago

visionhealth commented 3 years ago

Hi

We (at Visionhealth ltd) are using the devportal at v4 and we find that the function "CatalogUpdaterLambdaFunction" is timing out. We are uploading about 10 files to S3 - nothing excessive. The lambda in your template has a basic 128 memory and 20 second timeout settings.

We found that the issues were solved by increasing the lambda memory allocation - 512 seems a good setting, (obviously helps with the S3/apigateway its doing.)

Please can you make a change to increase the "CatalogUpdaterLambdaFunction" lamdba memory in the template params - or even add a template parameter to make it configurable on build?

thanks from Jim O'Mulloy (Visionhealth ltd)

mauritz-lovgren commented 2 years ago

We also upped the memory setting to 512 (got TIMEOUT from the function in the logs and APIs were not updated in the portal).

Might be related to the size of the API in API Gateway? Our APIs have grown quite a bit the last few months.

After upping the memory to 512, the lambda function executed very quickly, so timeout might be kept at 20 seconds.