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.
PACKAGE REPOSITORY
  • 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.
DEPLOYMENT
  • 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.
DNS
  • 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.
DATABASE REPLICATION
  • 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.

Comments

  1. useful information with nice info-graphic.The info of DNS here clarify doubts on DNS in my
    devops online training. Thank You.

    ReplyDelete
  2. 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.

    DevOps Course in Hyderabad

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. thank you for provide valuable information.one of the recommanded blog

    best regards
    sathya technologies

    ReplyDelete
  5. Thanks for sharing the very useful info about DevOps and keep updating........

    ReplyDelete
  6. 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.

    ReplyDelete
  7. Thanks 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.

    ReplyDelete
  8. Good article,By this i learn about devops. Keep place this of aricle.
    Thanks for information.
    best devops training institute in hyderabad

    ReplyDelete

Post a Comment

Popular posts from this blog

High Availability NAT for AWS VPC with Multiple Private Subnets.

Load Balancer with SSL offloading - nginx + HAProxy