Skip to content

Commit

Permalink
Set 8GB memory limit for updater docker container
Browse files Browse the repository at this point in the history
The memory limit is denoted in bytes. We opt for the largest firecracker VM size here since certain ecosystems like Python can take a lot of memory to run updates.
  • Loading branch information
Nish Sinha committed Oct 13, 2021
1 parent c42654c commit 0344973
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export class Updater {
],
Cmd: ['sh', '-c', cmd],
HostConfig: {
Memory: 8 * 1024 * 1024 * 1024, // 8GB in bytes
NetworkMode: proxy.networkName,
Binds: [
`${path.join(__dirname, '../output')}:${JOB_OUTPUT_PATH}:rw`,
Expand Down

0 comments on commit 0344973

Please sign in to comment.