Check DNS Cache when deploy Multi-AZ RDS


It is a common practice to enable mutli-AZ when deploy RDS in AWS to provide high availability. That’s not all. There is one more thing you need to check – DNS cache setting of your applications/codes. If you overlook it, the hight availability design may not work as you expect.

Imagine that when RDS detects the failure of the primary DB, it automatically promotes the standby DB to primary and update the DNS to point the new primary DB. If the application cache the DNS longer than the time that RDS takes to failover, then your application will run into an issue.

Here is a example of the DNS cache settings in JVM.

Selection_003

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s