EC2(アプリケーション)とRDS(DB)を異なるAZに配置している場合、パフォーマンスに影響はありますか?

質問・問題

EC2(アプリケーション)とRDS(DB)を異なるAZに配置している場合、パフォーマンスに影響はありますか?

 

回答・解決方法

それぞれの AZ は別個のデータセンター ( 100 km 圏内 ) で構成されるため、どうしても物理的な距離がございます。[1]
そのため、軽微なレベルでありますがネットワークのレイテンシーが増加いたします。
一つ一つのトランザクションでは無視できる程度ですが、バッチ等まとまった処理では大きくパフォーマンスの違いがでる可能性がございます。

また、異なる AZ 間の通信には料金発生がございますので、ご懸念がある場合には配置する AZ を揃えていただくことをおすすめいたします。[2]

[1] Improving Performance and Reducing Cost Using Availability Zone Affinity | AWS Architecture Blog
https://aws.amazon.com/jp/blogs/architecture/improving-performance-and-reducing-cost-using-availability-zone-affinity/
=====抜粋ここから=====
AZs are physically separated by a meaningful distance from other AZs in the same AWS Region, although they all are within 60 miles (100 kilometers) of each other. This generally produces single digit millisecond roundtrip latency between AZs in the same Region. Roundtrip latency between two instances in the same AZ is generally sub-millisecond when using enhanced networking.1 This can be even lower when the instances use cluster placement groups. Additionally, when data is transferred between two AZs, data transfer charges apply in both directions.
=====抜粋ここまで=====

[2] オンデマンドインスタンスの料金 - Amazon EC2 (仮想サーバー) | AWS
https://aws.amazon.com/jp/ec2/pricing/on-demand/
=====抜粋ここから=====
Amazon EC2、Amazon RDS、Amazon Redshift、Amazon DynamoDB Accelerator (DAX)、Amazon ElastiCache インスタンス、Elastic Network Interface、または同じ AWS リージョン内のアベイラビリティーゾーンをまたいだ VPC ピアリング接続間でのデータ転送 (「IN」/「OUT」) の料金は、各方向で 0.01 USD/GB です。

・・・中略・・・

同じアベイラビリティーゾーン内の Amazon EC2、Amazon RDS、Amazon Redshift、Amazon ElastiCache インスタンス、および Elastic Network Interfaces 間のデータ転送は無料です。
=====抜粋ここまで=====

この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています
他にご質問がございましたら、リクエストを送信してください