5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

とあるAWSアカウントのAZ間のレイテンシ測定(ping / 参考値)

Last updated at Posted at 2018-12-05

現状のZoneNameとZoneId

AZ ID というものがあることを知り現状を確認してみた。

$ aws ec2 describe-availability-zones | jq -c '.AvailabilityZones[] | [ .ZoneName, .ZoneId ]'
["ap-northeast-1a","apne1-az4"]
["ap-northeast-1c","apne1-az1"]
["ap-northeast-1d","apne1-az2"]

1aがaz1ではないのか...。なるほど。

レイテンシ測定

apne1-az4 (1a) → apne1-az4 (1a)

$ ping xx.xx.xx.xx -i 0.2 -c 100
:
rtt min/avg/max/mdev = 0.154/0.179/0.215/0.017 ms

apne1-az4 (1a) → apne1-az1 (1c)

$ ping xx.xx.xx.xx -i 0.2 -c 100
:
rtt min/avg/max/mdev = 2.352/2.398/2.463/0.069 ms

apne1-az4 (1a) → apne1-az2 (1d)

$ ping xx.xx.xx.xx -i 0.2 -c 100
:
rtt min/avg/max/mdev = 1.496/1.522/1.569/0.047 ms

apne1-az1 (1c) → apne1-az2 (1d)

$ ping xx.xx.xx.xx -i 0.2 -c 100
:
rtt min/avg/max/mdev = 0.713/0.728/0.779/0.027 ms

結果

異なるAZ間

Src AZ ID Dst AZ ID ping avg memo
apne1-az4 (1a) apne1-az1 (1c) 2.398 ms
apne1-az4 (1a) apne1-az2 (1d) 1.522 ms
apne1-az1 (1c) apne1-az2 (1d) 0.728 ms

同一AZ内

Src AZ ID Dst AZ ID ping avg memo
apne1-az4 (1a) apne1-az4 (1a) 0.179 ms

所感

当然ながら同一AZ内(④)のレイテンシが最も低かった。
異なるAZはすべて同様にレイテンシが高いと思っていたが
実際は①〜③の通り想定よりレイテンシが低いAZ間通信も存在するため
MultiAZを考慮する際はこのあたりを実測してから検討すると良さそう。

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?