What’s your experience with AWS Graviton processors?

I’m curious to hear about your practical experiences with AWS Graviton processors (Graviton2 or Graviton3). How do they perform compared to x86-based instances for tasks like web hosting, data processing, or containerized workloads? Have you seen noticeable cost savings, and were there any challenges during migration or compatibility issues with software? Any benchmarking tips or lessons learned would be greatly appreciated!

This really depends on the workload. For general web servers usage, it works just fine and is cheaper than x86. For straight costs it’s an easy swap, pair it with spot instance usage and you’re in a sweet spot.

Only things you really need to worry about is some code compatibility which AWS has some tools to help with like the Graviton porting assistant.

For benchmarking.. it’s best for multi threaded apps so you might not see much performance increase over x86 depending on your application or usage. But same performance for less costs is nice.

They’re objectively better for us. The biggest pain is making sure your docker containers are built on the ARM64 platform. Apparently bitbucket cloud is still struggling to allow for this in their native build runners…

Phoronix do a lot of benchmarking with Graviton vs. Intel vs. AMD, give them some love: https://www.phoronix.com/review/aws-graviton4-benchmarks

In personal experience Graviton2 are pretty slow (comparable to T3 instances) but Graviton3 are OK for general workloads.

We saved a huge chunk of money at work. The only painful part was the migration, which required us to multi-build our docker images. We have hundreds of EC2 services, and almost all of them are powered by Graviton

had done a migration to graviton in late 2020/early 2021, the stack was primarily node, go and java. Everything was running on k8s.

IIRC the steps we took was to enable multi arch builds, then spin up a new node group for arm then change the node selector for services and then watch graphs to see if something went awry. It was mostly smooth where go and node services ( we had issues with librd-kafka but sorted that with a custom base image ) went off smoothly. Java we had to get the devs to bump up to java 11 so that multi arch builds were supported well.

the ones we had trouble with was flink, kafka, a bunch of kafka connectors and one application which was in php. These tool a bit more effort but it was worth the effort as we got a better ROI in terms of cpu to cost.

Last time I looked at them, graviton was similar performance for multi-threaded applications. But worse performance for single threaded.

So I interpreted all my nodeJS apps should probably be better on x86.

Not necessarily, your underlying native libraries can still be multi-threaded.

We are in the same boat. Are you hosting your own BB runners?

It reduced me a bit of p90 latency for Lambda calls behind API.

Nah we just use the bb cloud runners. The workaround is to host your own runner on ec2, its just a big cost to eat if you have a small team

I agree, I had this issue because I have an M1 MBP and an x86 workstation PC. I found the only way around it is to build your container using docker buildx and setting both the platform arg to x64 and arm

I run almost all infrastructure (Kafka, Spark on K8S, PostgreSQL on RDS, Druid, Airflow, Hadoop w/ Hive + HBase, ZooKeeper) on Graviton instances with zero problems. ARM adoption has been pretty widespread already and I rarely come across something that won’t run on it these days. The one thing I’m wary of is spot instance pools. I’ve already considered switching Spark on K8S to x86 EKS nodes due to spot availability causing interruption storms that will cause Spark jobs to fail, however that is specific to the beginning of the month and I switched instance families from R → X due to them having much lower interruption rates, and so far all good.

Also you can run many processes on the same host, assuming you have more than 1 customer using it at the same time.

Where do you build your ARM containers then?

Dedicated EC2 instance, BB has a decent guide on building a self hosted runner

Yup :+1:. “It depends” :wink:

Did a parallel programming course at university, spent some money on EC2 for benchmarking/experimenting.

Graviton scale up much more linearly than x86 CPUs. That’s great if you have a massively parallel load. Not so great if you have stuff that can only use a few cores.

Much more bang per buck than x86 too, especially because 1 vCPU is an actual core and not just a thread.

Thanks. This is quite literally the task today. Been trying to get moved into BB pipelines and this ARM thing is a killer. Appreciate the response.

The problem we having is not Graviton workload related this just works fine. However we do utilise code build runner/builders which are x86 based. Cross compilation to Arm is just slow on them because of whole emulation thing. And we don’t want to pay for graviton builders because we host x86 runners in prem and they are cheap.