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

chore: Bump API memory (and CPU) #2312

Merged
merged 1 commit into from
Oct 16, 2023
Merged

chore: Bump API memory (and CPU) #2312

merged 1 commit into from
Oct 16, 2023

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Oct 16, 2023

What's the problem?

Currently, the API is hitting 100% CPU on prod when handling submissions.

image

Even when submissions succeed, it causes the API to restart which means that subsequent calls to the API (e.g. to proxy image requests, or trigger Slack notifications) then fail.

What's the solution

Doubling the memory also bumps the CPU size (Fargate docs)

If we can get this to prod and test (via /admin endpoints) I'd hope we can notice a difference on Fargate task.

Next steps...

I'd like to take a look at (and profile) what I suspect the culprit is here (computeBOPSParams()) and see if there are any code changes we can make that don't purely rely on just upping memory / CPU. This should buy us some time though!

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr marked this pull request as ready for review October 16, 2023 12:10
@DafyddLlyr DafyddLlyr requested a review from a team October 16, 2023 12:11
@DafyddLlyr DafyddLlyr merged commit a636268 into main Oct 16, 2023
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/bump-api-cpu branch October 16, 2023 12:11
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