fix(data): oom crash in stats sync

This commit is contained in:
Adam 2026-07-09 19:53:56 -05:00
commit 85ef35dd64
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 26 additions and 19 deletions

View file

@ -185,7 +185,9 @@ export const statSync = new sst.aws.Service("StatsSyncService", {
cluster: lakeCluster,
architecture: "arm64",
cpu: "0.25 vCPU",
memory: "0.5 GB",
// 0.5 GB caused an OOM crash loop: every restart immediately re-ran the 4 Athena
// stats queries (~$5/pass) every ~5 minutes instead of hourly.
memory: "2 GB",
image: {
context: ".",
dockerfile: "packages/stats/server/Dockerfile",