I Measured the Write Latency (QD1) of Amazon EBS-Backed Multi-AZ Volumes Across Different AZ Pairs

I Measured the Write Latency (QD1) of Amazon EBS-Backed Multi-AZ Volumes Across Different AZ Pairs

I measured the performance of gp3 and io2 multi-AZ volumes with fio. On io2 multi-AZ volumes, QD1 IOPS dropped from 2562-3069 on regular volumes to 517-1016. AZ pairs with higher network latency saw larger write latency increases.
2026.12.02

This page has been translated by machine translation. View original

Introduction

On November 30, 2026, Amazon EBS multi-AZ volumes were announced.

https://aws.amazon.com/about-aws/whats-new/2026/11/ebs-multi-az-volumes/

An overview of multi-AZ volumes, along with the CLI output for creation, synchronization, and failover, is introduced in the following article.

https://dev.classmethod.jp/articles/amazon-ebs-multi-az-volumes/

In this article, to check the effect of latency, which is noted as a consideration for multi-AZ volumes, I measured the performance difference from regular volumes using fio. I compared AZ combinations as well as the difference between gp3 and io2.

https://docs.aws.amazon.com/ebs/latest/userguide/ebs-multi-az-volumes.html

Test Environment

  • Region: Tokyo (ap-northeast-1)
  • EC2: 3 m9g.large instances (1 in each AZ)
  • OS: Amazon Linux 2023 (2023.12.20261127, arm64)
  • Kernel: 6.18.62-127.181.amzn2023
  • fio: 3.32
  • AWS CLI: 2.43.1
  • Volumes: 6 each of gp3 and io2 (3 multi-AZ, 3 regular)
    • Capacity: 10 GiB
    • IOPS: 3000
    • gp3 throughput: 125 MiB/s
    • Encryption: none
    • File system: XFS
    • AZ of regular volumes: one in each AZ, the same as the active AZ of the multi-AZ volumes
  • Test file: 2 GiB (the entire file was written before measurement)

The active AZ and standby AZ of the multi-AZ volumes are the following three combinations.

Volume Active AZ → Standby AZ
multi-A apne1-az4 (1a) → apne1-az1 (1c)
multi-C apne1-az1 (1c) → apne1-az2 (1d)
multi-D apne1-az2 (1d) → apne1-az4 (1a)

Hereafter, AZs are written using the end of the AZ ID (such as az4).

Creating multi-AZ Volumes

Creation Command

Specify the active AZ with --availability-zone-id and the standby AZ with --multi-availability-zone-configuration. The gp3 multi-A volume was created with the following command.

aws ec2 create-volume --volume-type gp3 --size 10 --iops 3000 --throughput 125 \
  --availability-zone-id apne1-az4 \
  --multi-availability-zone-configuration \
  'ConfigurationType=multi-az-1,StandbyAvailabilityZones=[{AvailabilityZoneId=apne1-az1}]'

For io2 volumes, specify --volume-type io2 and create them without --throughput. Regular volumes are created without --multi-availability-zone-configuration.

Checking the Synchronization Status

Immediately after creation, both ReplicationDataState and FailoverReadiness were insufficient-data. When I checked a few minutes later with the following command, all three gp3 volumes had ReplicationDataState as in-sync and FailoverReadiness as ready. In the output, they are displayed under the names Replication and Failover, respectively. I started measuring after reaching this state.

aws ec2 describe-volume-status --volume-ids vol-0123456789abcdef0 vol-0123456789abcdef1 vol-0123456789abcdef2 --query VolumeStatuses\[\].\{VolumeId:VolumeId\,AZ:AvailabilityZone\,Replication:MultiAvailabilityZoneStatusDetails.ReplicationDataState\,Failover:MultiAvailabilityZoneStatusDetails.FailoverReadiness\} --output json
[
    {
        "VolumeId": "vol-0123456789abcdef0",
        "AZ": "ap-northeast-1a",
        "Replication": "in-sync",
        "Failover": "ready"
    },
    {
        "VolumeId": "vol-0123456789abcdef1",
        "AZ": "ap-northeast-1c",
        "Replication": "in-sync",
        "Failover": "ready"
    },
    {
        "VolumeId": "vol-0123456789abcdef2",
        "AZ": "ap-northeast-1d",
        "Replication": "in-sync",
        "Failover": "ready"
    }
]

Measurement with fio

I measured the multi-AZ and regular volumes one volume at a time, using an EC2 instance in the same AZ.

Test Conditions

I first wrote the file with prefill, then ran four jobs for 15 seconds each.

fio --name=prefill --ioengine=libaio --direct=1 --filename=<マウント先>/fio.dat \
  --size=2G --rw=write --bs=1M --iodepth=8

fio --name=<ジョブ名> <下表のオプション> \
  --ioengine=libaio --direct=1 --filename=<マウント先>/fio.dat --size=2G \
  --time_based --runtime=15 --group_reporting
Job name Options
randwrite-qd1 --rw=randwrite --bs=4k --iodepth=1
randwrite-qd32 --rw=randwrite --bs=4k --iodepth=32
randread-qd32 --rw=randread --bs=4k --iodepth=32
seqwrite-1m --rw=write --bs=1M --iodepth=8

The average latency is the lat (mean) reported by fio.

Write Latency at QD1

In QD1 random writes, the average latency of multi-AZ increased by 0.6 to 1.6 ms compared to regular volumes, and IOPS decreased.

Type AZ pair (active→standby) Regular avg. latency (µs) multi-AZ avg. latency (µs) Difference (µs) Regular IOPS multi-AZ IOPS
gp3 az4→az1 805 2325 +1520 1242 430
gp3 az1→az2 807 1459 +652 1239 685
gp3 az2→az4 858 2216 +1358 1165 451
io2 az4→az1 326 1935 +1609 3064 517
io2 az1→az2 390 984 +594 2562 1016
io2 az2→az4 326 1880 +1554 3069 532

The az1→az2 multi-AZ volume had the lowest average latency and the highest IOPS.

For the multi-AZ volumes, I performed a failover, attached them to an EC2 instance in a different AZ, and measured again.

Type Volume Active→Standby (before / after) QD1 avg. latency before (µs) After (µs) QD1 IOPS before After
gp3 multi-A az4→az1 / az1→az4 2325 2327 430 430
gp3 multi-C az1→az2 / az2→az1 1459 1471 685 680
gp3 multi-D az2→az4 / az4→az2 2216 2216 451 451
io2 multi-A az4→az1 / az1→az4 1914 1977 522 506
io2 multi-C az1→az2 / az2→az1 960 1231 1041 812
io2 multi-D az2→az4 / az4→az2 1816 1837 551 544

The combination of az1 and az2 had lower average latency and higher IOPS than the other combinations both before and after the failover. The trend did not change even when I re-measured multiple times, not only after reattachment associated with failover but also after replacing the EC2 instance itself.

QD32 Writes and Reads, and 1 MiB Sequential Writes

QD32 writes and reads stayed close to the configured 3000 IOPS for both multi-AZ and regular volumes.

Type Configuration QD32 write IOPS QD32 read IOPS 1 MiB write (MiB/s)
gp3 Regular 3200 3072〜3074 133.4
gp3 multi-AZ 3199〜3200 3068〜3074 133.3
io2 Regular 3069〜3199 3068〜3072 767.4〜767.5
io2 multi-AZ 3199 3068〜3076 766.8〜768.4

Inter-AZ ping Round-Trip Latency

I ran ping to private IPs among the three EC2 instances placed in different AZs.

ping -c 300 -i 0.2 <宛先のプライベート IP>
Source→Destination Round-trip latency avg. (ms) p99 (ms)
az4→az1 1.554 1.570
az1→az4 1.549 1.560
az4→az2 1.498 1.520
az2→az4 1.502 1.560
az1→az2 0.552 0.567
az2→az1 0.559 0.574

The lowest round-trip latency was between az1 and az2, which matched the combination where the multi-AZ volume latency was low. The increase in QD1 write latency was also smallest for az1→az2.

Summary

I confirmed that, with both gp3 and io2 multi-AZ volumes, QD1 write latency increases compared to regular volumes.

That latency correlated with the ping round-trip latency, suggesting that network latency may be reflected in the latency of multi-AZ volumes. On the other hand, in cases such as QD32 writes, the configured IOPS became the upper limit and the effect of latency did not appear.

If you use multi-AZ volumes for workloads like QD1, I recommend measuring and evaluating performance in advance, including the AZ combination.

Share this article

AWSのお困り事はクラスメソッドへ