Using failover groups
Setup the failover group
As with any migration, you will need to deal with moving your code, data and traffic.
Clone your existing application to a different cloud vendor or data center, and set it into maintenance mode to prevent it from serving content. We highly recommend that you build an application with similar server specifications to your main application to avoid issues during a switch.
Enable database replication between your stacks - this will setup a master/slave architecture between your stacks, whereby the slave is an exact replica of the master at all times.
Use Failover Groups to make it easy for you to switch between applications. By pointing your domain at the Failover address, you will be able to switch your traffic between stacks at the click of a button. We will automatically transfer your SSL certificates if you follow the guidelines in our reference guide.
How to use the failover application
If and when your main application fails, you will need to switch to the failover application.
- Set your main application into maintenance mode, to prevent new data being written to it.
- Turn off the database replication.
- Make your database slave a master - this will allow data to be written to the database.
- Turn off maintenance mode on your failover application.
- Use your Failover group menu to switch your traffic to the failover application. The TTL on the Failover address is 5 minutes, so you should see your users on the new application momentarily. We will automatically transfer your SLL certificates if you follow the guidelines in our reference guide.