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

Memory spike causes OOM error #7

Open
caiohsramos opened this issue Sep 29, 2023 · 0 comments
Open

Memory spike causes OOM error #7

caiohsramos opened this issue Sep 29, 2023 · 0 comments

Comments

@caiohsramos
Copy link

caiohsramos commented Sep 29, 2023

Bridges created with default machine size (shared-1x-cpu@256MB) occasionally crash due to memory spikes, specially when dealing with large files. Fly.io offers the option to enable Linux swap on Machines with the config swap_size_mb.

This can be configured when creating the machine with the option

"init": {
  "swap_size_mb": 512,
}

at https://github.com/beeper/bridge-deployer/blob/580ccfb4302f54ea9f4dc6e02a6379ea82c96545/app/api/deploy/route.ts#L102-L132

From what I tested increasing the memory to 512MB is probably an overkill, and adding swap prevents the restarts. This change/info could help others to run bridges smoothly without paying extra.

@caiohsramos caiohsramos changed the title Memory spikes cause OOM error Memory spike causes OOM error Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant