Introduction
Availability Zones are an essential building block for highly available application architectures on AWS. For Oracle databases they also present an opportunity to achieve a database service level objective of 99.99% or higher by combining with Oracle RAC active-active database clustering technology and by spreading RAC nodes across two or three Availability Zones. FlashGrid Cluster enables the Multi-AZ Oracle RAC architecture on AWS. (Note that Oracle Database@AWS does not offer the Multi-AZ RAC capability, while implementing a self-built Oracle RAC solution on AWS EC2 instances would be prohibitively complex and impractical for production use).
To help with selecting an optimal architecture, FlashGrid measured the latencies between Availability Zones in all AWS Regions. Our results show that, with rare exceptions, the actual P99 RTT latencies between AZs are well below 0.5 ms, which makes Multi-AZ clustering suitable for Oracle RAC. This article provides the measurement results and methods for your reference.
Additionally, when deploying a FlashGrid Cluster with two Oracle RAC nodes across Availability Zones, database performance can be further optimized by placing the database nodes in AZs that have the lowest network latency between them. This will help to minimize the latency of storage and Cache Fusion data transfers between the database nodes.
Using us-east-2 (use2) as an example (see table at end of document), we would deploy the RAC nodes to zone az2 & zone az3 based on the measured latency:
- use2-az1 ⇿ use2-az2 = 0.33 ms
- use2-az1 ⇿ use2-az3 = 0.50 ms
- use2-az2 ⇿ use2-az3 = 0.15 ms
Higher latency between the quorum node and the database nodes does not directly affect normal database I/O or Cache Fusion performance.
How Availability Zones are allocated to an AWS account
AWS maps the physical Availability Zones randomly to the Availability Zone names. The mapping is different for each AWS account. This approach helps to distribute resources across the Availability Zones in an AWS Region, instead of resources likely being concentrated in Availability Zone "az1" for each Region.
As a result, the Availability Zone us-west-2a for your AWS account might not represent the same physical location as us-west-2a for a different AWS account. See AWS document Availability Zone IDs for your AWS resources for further information.
In the tables below, we use the physical Zone IDs. When reviewing the latency numbers, you must map the physical Zone IDs to the Availability Zone names in your AWS account. To determine the mapping for your account, review the AWS EC2 Dashboard for the region. Under Service Health, the zone mapping is displayed:
Alternatively, using the AWS CLI, you can run a query as follows:
% aws ec2 describe-availability-zones --output json --region us-west-2 | jq '.AvailabilityZones[] | "\(.ZoneName),\(.ZoneId)"'
"us-west-2a,usw2-az2"
"us-west-2b,usw2-az1"
"us-west-2c,usw2-az3"
"us-west-2d,usw2-az4"
How to measure inter-AZ latencies in your account
FlashGrid recommends comparing UDP latency rather than TCP (as Oracle Cache Fusion data uses UDP for communication between nodes) and suggests using the sockperf utility for this, which is available as an installable package with most Linux distributions.
sockperf uses UDP by default. We recommend a test duration of 101 seconds, a message rate of 2,000 messages per second, and a message size of 8,000 bytes..
Use the following steps to perform your own testing:
- Deploy a server to each zone
- use a common operating system (for instance, Oracle Linux 9.7),
- on instances of the same size (for instance, c7i.large).
- Install the sockperf tool
- on each server, start the sockperf listener process:
-
Temporarily allow sockperf connections on port 11111 (UDP). Traffic is blocked on this port by default on OL9.7:
sudo firewall-cmd --add-port=11111/udp -
Start the listener:
sockperf server --ip 0.0.0.0 --port 11111 --daemonize
-
- from the server in zone 1
-
initiate a sockperf test to the server in zone 2. This will run for 101 seconds with a payload of 8000 bytes:
sockperf ping-pong -i REMOTE_PRIVATE_IP_ZONE2 -m 8000 -t 101 -p 11111 --mps=2000 -
initiate a sockperf test to the server in zone 3
sockperf ping-pong -i REMOTE_PRIVATE_IP_ZONE3 -m 8000 -t 101 -p 11111 --mps=2000
-
- from the server in zone 2
-
initiate a sockperf test to the server in zone 3
sockperf ping-pong -i REMOTE_PRIVATE_IP_ZONE3 -m 8000 -t 101 -p 11111 --mps=2000
-
Use the "percentile 99.000" output from each test to determine the network latency between the VMs. Sockperf returns results in microseconds (μs). Divide the value by 1,000 to convert to milliseconds (ms).
Selecting optimal AZ assignment when deploying a FlashGrid Cluster
Once you have measured the latency between the different AZ pairs, determine which pair of AZs has the lowest latency. When deploying your cluster using the FlashGrid Launcher, select that AZ pair for the database nodes.
For instance, if Zones b and zone c have the lowest inter-AZ latency, then you should place the two database nodes in AZ b and c, and the quorum node in AZ a as shown below:
Inter-AZ latency results by AWS Region
FlashGrid measured the following latencies between AWS AZs in November 2026.
We recommend that you collect your own measurements before choosing the best pairing. Please consult with FlashGrid Support when using this method to determine optimum placement.
To account for minor variations in measured latency, AZ pairs with latency values within 0.1 ms of the lowest measured latency in a region are considered comparable and are highlighted equally (in green). Where the difference between the highest and lowest measured latency is less than 0.1 ms, no highlighting is applied, as there is no meaningful latency advantage in selecting one AZ pair over another.
| af-south-1 | afs1-az2 | afs1-az3 | ||||
|---|---|---|---|---|---|---|
| afs1-az1 | 0.41 | 0.22 | ||||
| afs1-az2 | 0.29 | |||||
| ap-east-1 | ape1-az2 | ape1-az3 | ||||
| ape1-az1 | 0.21 | 0.30 | ||||
| ape1-az2 | 0.35 | |||||
| ap-east-2 | ape2-az2 | ape2-az3 | ||||
| ape2-az1 | 0.44 | 0.20 | ||||
| ape2-az2 | 0.51 | |||||
| ap-northeast-1 | apne1-az2 | apne1-az4 | ||||
| apne1-az1 | 0.38 | 0.78 | ||||
| apne1-az2 | 0.77 | |||||
| ap-northeast-2 | apne2-az2 | apne2-az3 | apne2-az4 | |||
| apne2-az1 | 0.55 | 0.59 | 0.36 | |||
| apne2-az2 | 0.48 | 0.70 | ||||
| apne2-az3 | 0.30 | |||||
| ap-northeast-3 | apne3-az2 | apne3-az3 | ||||
| apne3-az1 | 0.15 | 0.20 | ||||
| apne3-az2 | 0.32 | |||||
| ap-south-1 | aps1-az2 | aps1-az3 | ||||
| aps1-az1 | 0.12 | 0.21 | ||||
| aps1-az2 | 0.34 | |||||
| ap-south-2 | aps2-az2 | aps2-az3 | ||||
| aps2-az1 | 0.42 | 0.20 | ||||
| aps2-az2 | 0.41 | |||||
| ap-southeast-1 | apse1-az2 | apse1-az3 | ||||
| apse1-az1 | 0.37 | 0.30 | ||||
| apse1-az2 | 0.17 | |||||
| ap-southeast-2 | apse2-az2 | apse2-az3 | ||||
| apse2-az1 | 0.29 | 0.26 | ||||
| apse2-az2 | 0.45 | |||||
| ap-southeast-3 | apse3-az2 | apse3-az3 | ||||
| apse3-az1 | 0.32 | 0.22 | ||||
| apse3-az2 | 0.19 | |||||
| ap-southeast-4 | apse4-az2 | apse4-az3 | ||||
| apse4-az1 | 0.22 | 0.10 | ||||
| apse4-az2 | 0.16 | |||||
| ap-southeast-5 | apse5-az2 | apse5-az3 | ||||
| apse5-az1 | 0.11 | 0.08 | ||||
| apse5-az2 | 0.10 | |||||
| ap-southeast-6 | apse6-az2 | apse6-az3 | ||||
| apse6-az1 | 0.30 | 0.15 | ||||
| apse6-az2 | 0.34 | |||||
| ap-southeast-7 | apse7-az2 | apse7-az3 | ||||
| apse7-az1 | 0.14 | 0.14 | ||||
| apse7-az2 | 0.21 | |||||
| ca-central-1 | cac1-az2 | cac1-az4 | ||||
| cac1-az1 | 0.41 | 0.61 | ||||
| cac1-az2 | 0.65 | |||||
| ca-west-1 | caw1-az2 | caw1-az3 | ||||
| caw1-az1 | 0.19 | 0.32 | ||||
| caw1-az2 | 0.26 | |||||
| eu-central-1 | euc1-az2 | euc1-az3 | ||||
| euc1-az1 | 0.42 | 0.13 | ||||
| euc1-az2 | 0.36 | |||||
| eu-central-2 | euc2-az2 | euc2-az3 | ||||
| euc2-az1 | 0.55 | 0.33 | ||||
| euc2-az2 | 0.23 | |||||
| eu-north-1 | eun1-az2 | eun1-az3 | ||||
| eun1-az1 | 0.55 | 0.53 | ||||
| eun1-az2 | 0.75 | |||||
| eu-south-1 | eus1-az2 | eus1-az3 | ||||
| eus1-az1 | 0.51 | 0.29 | ||||
| eus1-az2 | 0.56 | |||||
| eu-south-2 | eus2-az2 | eus2-az3 | ||||
| eus2-az1 | 0.48 | 0.46 | ||||
| eus2-az2 | 0.56 | |||||
| eu-west-1 | euw1-az2 | euw1-az3 | ||||
| euw1-az1 | 0.26 | 0.19 | ||||
| euw1-az2 | 0.17 | |||||
| eu-west-2 | euw2-az2 | euw2-az3 | euw2-az4 | |||
| euw2-az1 | 0.53 | 0.42 | 0.47 | |||
| euw2-az2 | 0.34 | 0.58 | ||||
| euw2-az3 | 0.48 | |||||
| eu-west-3 | euw3-az2 | euw3-az3 | ||||
| euw3-az1 | 0.28 | 0.34 | ||||
| euw3-az2 | 0.20 | |||||
| il-central-1 | ilc1-az2 | ilc1-az3 | ||||
| ilc1-az1 | 0.82 | 0.40 | ||||
| ilc1-az2 | 0.37 | |||||
| mx-central-1 | mxc1-az2 | mxc1-az3 | ||||
| mxc1-az1 | 0.15 | 0.18 | ||||
| mxc1-az2 | 0.13 | |||||
| sa-east-1 | sae1-az2 | sae1-az3 | ||||
| sae1-az1 | 1.19 | 0.50 | ||||
| sae1-az2 | 0.44 | |||||
| us-east-1 | use1-az2 | use1-az3 | use1-az4 | use1-az5 | use1-az6 | |
| use1-az1 | 0.21 | 0.39 | 0.25 | 0.18 | 0.34 | |
| use1-az2 | 0.36 | 0.22 | 0.23 | 0.42 | ||
| use1-az3 | 0.40 | 0.27 | 0.23 | |||
| use1-az4 | 0.33 | 0.48 | ||||
| use1-az5 | 0.34 | |||||
| us-east-2 | use2-az2 | use2-az3 | ||||
| use2-az1 | 0.33 | 0.50 | ||||
| use2-az2 | 0.15 | |||||
| us-west-2 | usw2-az2 | usw2-az3 | usw2-az4 | |||
| usw2-az1 | 0.25 | 0.19 | 0.36 | |||
| usw2-az2 | 0.28 | 0.31 | ||||
| usw2-az3 | 0.23 | |||||
(measured with sockperf_udp)
About FlashGrid Cluster for Oracle RAC on AWS
FlashGrid Cluster is a virtual clustered appliance that enables deployment of Oracle RAC on AWS VMs for mission-critical transaction processing workloads. Oracle RAC nodes can be distributed across AWS Availability Zones to support database uptime of 99.99% or higher, depending on the deployment architecture and availability requirements. Deployment is fully automated using Infrastructure-as-Code and typically completes in 30 to 90 minutes. FlashGrid provides 24/7 technical support covering the complete infrastructure stack used by the cluster.
First introduced on AWS in 2017, FlashGrid Cluster for Oracle RAC is available in all AWS Regions.
Additional Information
FlashGrid Cluster for Oracle RAC on AWS: Architecture
Technical blog: Multi-AZ RAC: the missing part in Oracle MAA Reference Architectures
Technical blog: Multi-AZ vs. Multi-Region in the Cloud
AWS Marketplace: FlashGrid for Oracle RAC and Database HA (on RHEL9) & FlashGrid for Oracle RAC and Database HA (on OL 9)