Skip to content

Commit

Permalink
chore: increase memory of orchestration tasks container (#1413)
Browse files Browse the repository at this point in the history
Some tasks sporadically fail with

>Failed to send task heartbeat: Error: getaddrinfo EBUSY

Logs show that memory consumption is close to 100%.

Increase memory by 1GB.

----

*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*
  • Loading branch information
otaviomacedo authored Aug 23, 2024
1 parent 9944c2e commit 4d35783
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/__tests__/__snapshots__/construct-hub.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/backend/transliterator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ export class Transliterator extends Construct {
// PLACEHOLDER: Set this to something non-empty to enable lsof running...
{ name: 'RUN_LSOF_ON_HEARTBEAT', value: '' },
],
memoryLimit: 9216,
cpu: 4096,
},
],
integrationPattern: IntegrationPattern.WAIT_FOR_TASK_TOKEN,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2157,7 +2157,7 @@
"GroupId"
]
},
"\"]}},\"Overrides\":{\"ContainerOverrides\":[{\"Name\":\"Resource\",\"Command.$\":\"$\",\"Environment\":[{\"Name\":\"SFN_TASK_TOKEN\",\"Value.$\":\"$$.Task.Token\"},{\"Name\":\"RUN_LSOF_ON_HEARTBEAT\",\"Value\":\"\"}]}]},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}}}}"
"\"]}},\"Overrides\":{\"ContainerOverrides\":[{\"Name\":\"Resource\",\"Command.$\":\"$\",\"Cpu\":4096,\"Memory\":9216,\"Environment\":[{\"Name\":\"SFN_TASK_TOKEN\",\"Value.$\":\"$$.Task.Token\"},{\"Name\":\"RUN_LSOF_ON_HEARTBEAT\",\"Value\":\"\"}]}]},\"LaunchType\":\"FARGATE\",\"PlatformVersion\":\"1.4.0\"}}}}"
]
]
}
Expand Down

0 comments on commit 4d35783

Please sign in to comment.