LoginSignup
0
0

More than 5 years have passed since last update.

Aurora、クラスタ構成でホスト名にアクセスした時、ping 打つ毎にIPアドレスが変わるのを確認する

Last updated at Posted at 2018-10-30

↓のクラスタ構成の時に、
image.png

エンドポイントが↓になってて、
image.png

読み込みエンドポイントにping打つと、pingのタイミングによってIPアドレスが変わってる確認。

[ec2-user@ip-172-31-37-104 ~]$ ping mydbinstance-cluster-1.cluster-ro-c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com
PING mydbinstance2.c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com (172.31.10.31) 56(84) bytes of data.

[ec2-user@ip-172-31-37-104 ~]$ ping mydbinstance-cluster-1.cluster-ro-c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com
PING mydbinstance3.c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com (172.31.31.214) 56(84) bytes of data.

[ec2-user@ip-172-31-37-104 ~]$ ping mydbinstance-cluster-1.cluster-ro-c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com
PING mydbinstance3.c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com (172.31.31.214) 56(84) bytes of data.

[ec2-user@ip-172-31-37-104 ~]$ ping mydbinstance-cluster-1.cluster-ro-c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com
PING mydbinstance2.c32g4nbcrsih.ap-northeast-1.rds.amazonaws.com (172.31.10.31) 56(84) bytes of data.

※クラスターエンドポイントの方には何回ping打っても同じIPアドレス

備考

故にコネクションプール張りっぱなしにして大丈夫です?っていう話につながる。
※最初に取得したIPアドレスにつなぎっぱなしにして良いのか問題

0
0
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
0
0