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

fix: Feed builder lambda times out #1381

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Conversation

truggeriaws
Copy link
Contributor

Problem

The feed builder lambda was timing out and consistently failing causing the atom feed to not be updated.

Solution

After investigation, it was determined the default memory, 128MB, was insufficient for the lambda to correctly execute. This PR increases the memory to 1024MB, a number verified by dev testing, and adding an alarm such that future issues will be flagged.

Investigation notes

Below you can see the metrics from the lambda function before and after increasing the memory allocation, approximately 21:45UTC.

Screenshot 2024-01-30 at 3 35 59 PM

Note that when the issue was resolved the invocations, throttles and events spike, then return to a low steady state. I believe this is due to the long backlog of work the lambda had to work through as it hasn't run correctly in ~seven months.

This fixes #1238.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

* Update memory to 1024MB
* Add failure alarm
* Adding section for new feed builder failure alarm
* Fixing typos and linting
@truggeriaws truggeriaws added the bug Something isn't working label Jan 31, 2024
@truggeriaws truggeriaws self-assigned this Jan 31, 2024
Copy link
Contributor

@MrArnoldPalmer MrArnoldPalmer left a comment

Choose a reason for hiding this comment

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

I wonder if the memory size requirements are ever increasing based on the catalog size being essentially unbounded. Not for now but something to think about.

:shipit:

@cdklabs-automation cdklabs-automation added this pull request to the merge queue Feb 1, 2024
Merged via the queue into main with commit 525e1fb Feb 1, 2024
9 checks passed
@cdklabs-automation cdklabs-automation deleted the truggeriaws/feed-timeout branch February 1, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RSS/Atom feeds haven't been updated in over a month
3 participants