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

make the API pods larger #1438

Merged
merged 1 commit into from
Mar 11, 2024
Merged

make the API pods larger #1438

merged 1 commit into from
Mar 11, 2024

Conversation

sjahl
Copy link
Contributor

@sjahl sjahl commented Mar 11, 2024

We're fairly consistently getting container restarts when pods reach their 3GB javascript heap limit. We were previously getting containers killed when they reached the pod memory limit of 4GB. We initially tried to set the JS heap limit explicitly to 3GB, because the default value wasn't causing any memory eviction before reaching the pod limits.

Now that pods are falling over because we can't allocate heap, or keep it cleaned up, @ 3GB, I think it's clear that we need more resources for these pods to service normal requests.

This doubles the memory limit for the pod to 8GBs, and sets the request to 7GBs. The heap is being set to 6GBs, which uses most of the available memory, and leaves a bit more for OS-related overhead in the container.

@sjahl sjahl requested a review from mattsolo1 March 11, 2024 18:35
@sjahl sjahl merged commit e84701a into main Mar 11, 2024
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