To DR or Not To DR
Most organizations these days look at strategies and ways of implementing a "working" DR solution. Often a DR plan of action is a manual process based on multiple approvals at each level from Incident Management Teams to Product Ownership teams.
What if there was a way to keep an active DR running where failure of a primary site would seamlessly transfer the traffic to the secondary site. In fact if the DR is active or warm then the only manual bit would be disabling the primary site via DNS.
A few tips and tricks that would help in a simple implementation of a warm DR for an application hosted on AWS.
AMI
- Make sure that the AMIs are built across both the primary and secondary region.
- The fastest way to build multi-region AMIs would be to use different builds for each region using the same configuration management code altering the "REGION" parameter each time. This would make the AMIs consistent and available in each region.
- The application packages/RPMs should be available and ready to be used across both the regions.
- If the packages are hosted in private S3 buckets then the application packages need to be uploaded to the S3 buckets in each region.
- As a part of deployment, the application deployment code should take REGION as one of the parameters.
- Each region should be deployed to during the scheduled deployment. A deployment would be successful only if both regions are successfully deployed to.
- The best way to implement DNS in this case would be weighted.
- Equal weights should be applied for both the site, ideally. But this could be left to the discretion of the business owners.
- Each DNS entry should have a health check which would dictate whether the site is healthy for traffic or not. This would allow traffic to be shifted across sites automatically based on the health check.
- If health checks aren't configured then the DNS switch would be a manual process.
- Last but not the least, keeping the databases replicated would be the most important step in the DR strategy.
- MySQL databases are easier to replicate as AWS provides auto-replication for MySQL. This makes it easier to create an active DR.
- PostgreSQL is tricky business. Since AWS does not provide auto replication for PostgreSQL DBs, the replication would need to be manual in an event of DR. This needs to be a two way process. First between the primary and secondary sites to update the secondary site and when the primary site comes back up, to update the primary site.
useful information with nice info-graphic.The info of DNS here clarify doubts on DNS in my
ReplyDeletedevops online training. Thank You.
Thanks for sharing all the insformation about DevOps. DevOps offers the best career growth for all those people who are highly skilled in it. The investments in this field are huge owing to its prominence. Also, many companies are in need of qualified DevOps trained people and so, better knowledge in this field helps in getting better job opportunities among the most reputed companies.
ReplyDeleteDevOps Course in Hyderabad
Thank you for giving information about devops. Excellent blog
ReplyDeleteDevOps Online training
Learning DevOps Online
This comment has been removed by the author.
ReplyDeletethank you for provide valuable information.one of the recommanded blog
ReplyDeletebest regards
sathya technologies
best Devops training in hyderabad
Devops training in hyderabad
Devops training in ameerpet
thank you for provide valuable information.one of the recommanded blog
ReplyDeletebest regards
sathya technologies
Thanks for sharing the very useful info about DevOps and keep updating........
ReplyDeleteThanks for posting such a great article.you done a great job.
ReplyDeleteDevops Online Training
Devops Online Training in Hyderabad
Very useful Devops Practice Blog.Intellipaat is one of the best DevOps Training Online institute in Bangalore and providing IT End-to-End training with real-time hands-on exposure through the IT Experts to the students.Thank you.
ReplyDeleteThanks for this valuable information .i was really learn about content how impact on devops Jobs in Hyderabad statistics but i get the answer of most of my queries.
ReplyDeleteGood article,By this i learn about devops. Keep place this of aricle.
ReplyDeleteThanks for information.
best devops training institute in hyderabad