police-data-trust icon indicating copy to clipboard operation
police-data-trust copied to clipboard

[FEATURE] Switch backend container to Graviton

Open zganger opened this issue 1 year ago • 2 comments

Graviton performs better and consumes less power and therefore costs 20% less than intel systems. We can adopt it for our backend containers.

Steps:

  • add --platform=linux/arm64 to docker builds in GitHub actions
    • https://github.com/kciter/aws-ecr-action - using the extra_build_args option
  • update the ECR task role to use graviton/ linux ARM hosts to run the jobs
  • merge and deploy

zganger avatar May 15 '24 00:05 zganger

note: we could consider on Frontend containers as well but I haven't tested. That could be a separate issue if we like this.

zganger avatar May 15 '24 00:05 zganger

Doesn't work without arm64 Github Actions runner (currently in private beta?)

mikeyavorsky avatar May 15 '24 01:05 mikeyavorsky

This has been resolved by using qemu in actions to build. We could probably speed it up a little bit when the arm64 actions runner comes out, but until then this can be closed as done.

zganger avatar Jul 03 '24 00:07 zganger