Skip to content

Commit

Permalink
build: add node GC argument to fly template
Browse files Browse the repository at this point in the history
Fly deployments on the free tier have ~256mb of memory available. Users
with large transaction histories were encountering out of memory errors
when attempting to export their data. This commit adds a node argument
to (more or less) run the garbage collector at a smaller memory usage,
helping keep users on flyio within their available limit.
  • Loading branch information
PartyLich authored and jlongster committed Sep 1, 2022
1 parent d3a0e80 commit 32bf923
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fly.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ processes = []
[experimental]
allowed_public_ports = []
auto_rollback = true
cmd = ["node", "--max-old-space-size=180", "app.js"]

[[services]]
http_checks = []
Expand Down

0 comments on commit 32bf923

Please sign in to comment.