Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to know if an Amazon RDS endpoint ever changes when a DB instance crashes and is brought back up. I want to setup 2 EC2 instances (additional EC2 instances may be spun up depending on traffic) hosting a Django app pointing to an RDS MySQL DB. Since the DB host name (i.e. endpoint) is provided in the settings.py file, do I need to worry that I will need to change it in case the DBInstance fails?

If the endpoint does change, can you make any recommendations on how to automate pushing the new endpoint to the settings.py file? I want to minimize any downtime of the app in case of EC2 or RDS instance failures.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Amazon RDS instance endpoints will not change. You should however, ensure you have your RDS in multiple availability zones. See here for some caveats and recommendation with RDS availablility -- http://aws.amazon.com/rds/faqs/#12

share|improve this answer
    
@Chida... Thanks. –  Binary Maze Aug 17 '12 at 5:57

While the RDS endpoint name won't change, you should configure your application to use an AWS Route 53 DNS CNAME for your database, which allows you to easily change where your database is served from (RDS, bare EC2 instance, etc) without needing to modify the application configuration.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.