From 32bf923c1a47744db75b6bd570c8d6b849a217cf Mon Sep 17 00:00:00 2001 From: "Arthur E. Jones" Date: Sat, 30 Jul 2022 18:27:32 -0500 Subject: [PATCH] build: add node GC argument to fly template 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. --- fly.template.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/fly.template.toml b/fly.template.toml index e56b39d..611ebf2 100644 --- a/fly.template.toml +++ b/fly.template.toml @@ -11,6 +11,7 @@ processes = [] [experimental] allowed_public_ports = [] auto_rollback = true + cmd = ["node", "--max-old-space-size=180", "app.js"] [[services]] http_checks = []