Automate Disaster Recovery (DR) and Magento Maintenance

Automate Disaster Recovery (DR) and Magento Maintenance

In this short article, we will look at a typical scenario of a custom disaster recovery site that completely covers common errors faced in a website or a web server configuration and in this case a Magento. The typical errors are:

1st Scenario: The web server is down and the customer sees server not found page i.e. the default page shown by the browser
2nd Scenario: 404 error, this is the most common error that one finds is 404 page not found.

Most of these software applications will have a prohibition to build a custom page for it including Magento. In the case of Magento if you need to place Magento into maintenance during an update or product in both upgrades etc. Magento also has a provision to build a custom maintenance page but what usually happens is during your update the web server or the Magento application could go wrong i.e. could break down and you instead of customers seeing this custom maintenance page which actually rely on the web server being up will see a server not found page. So this custom maintenance page built into  Magento is not a 100% assurance to avoid seeming a bad page. Ideally, what we need is to be totally in charge of what the customer sees at a given time when your web server is up or the webserver is down customers will always see a website or web page that you want them to see. For the solution, we will rely on Amazon route 53 and S3 buck.

Here are the steps:

  1. We will connect the domain name to AWS Route 53 (In case your domain name is hosted elsewhere we need to ship the zone into a router to pre-posted.
  2. Add a Health check to the Route43 freeze zone and build a static website using an S3 bucket.
  3. Next is building a custom URL in your Magento application that will flag side being healthy or unhealthy and attach this as the health check within your rob sympathy.
  4. Now you need to attach this static website as the secondary website in your route 53 hosted zone that is it
  5. Now the last thing is you will also need to repair a procedure to tell the help check true or false. So that irrespective of your Magento state you can manually force the maintenance page.

Leave a Reply

Your email address will not be published. Required fields are marked *

Have a project to discuss?

Let’s make something
amazing together