The m6g.4xlarge is a general-purpose AWS EC2 instance: 16 vCPU and 64 GiB of memory, 4.00 GiB per vCPU. In the name, "m" is the general-purpose line, "6" is the generation, "g" marks AWS Graviton (ARM) processors and "4xlarge" is the size within the m6g family. It runs on AWS Graviton2 Processor at 2.5 GHz, and AWS introduced it in May 2020. AWS has since shipped m7g, m8g and m9g; m7g.4xlarge is the direct replacement at this size, scoring 411,602 CoreMark/s against this instance's 309,817 — roughly 33% more throughput for the same vCPU count. Rackspace Spot's gp.vs2.2xlarge is a like-for-like substitute at 16 vCPU and 64 GiB, about 93% below the US East (N. Virginia) on-demand rate.
Match qualityx86 substitution
m6g.4xlarge is Graviton (arm64). Rackspace Spot does not have arm64 servers, so gp.vs2.2xlarge is an x86_64 substitute with similar specs.
You will need x86 builds of your container images. Most software rebuilds without changes, but anything with compiled native code needs a real rebuild rather than a retag. Speed per core also differs between the two chips, so it is worth testing before deciding how many nodes to run.