How does Passive EC2 instance work in case of active-passive failover?

1k Views Asked by At

I want to configure active-passive failover with Route-53 in which primary (Active) resource is available/running and in case of any failure, Passive instance should take over.

I want to know how we need to configure Passive EC2 instance.

I am referring to the article Active-active and active-passive failover - Amazon Route 53.

2

There are 2 best solutions below

2
John Rotenstein On BEST ANSWER

In the given scenario, if Amazon Route 53 detects a failure, it simply sends the traffic to the alternate instance.

That instance should already be fully configured ready to process any traffic it receives.

It should use the same instance configuration as 'Active-Active', except it doesn't get any traffic when the primary instance is operating correctly.

3
A Modgil On

AWS_CLOUDWATCH_EVENT_SCREENSHOTjust to add to the above comment from John, You can use cloud watch to monitor the heart beat and spin up the passive instance aka make it active when you need it.

Yes, you can add a cron job or event. I am not sure whether you can use a combination of both. Refer to the screenshot for details. In the screenshot i assumed that you have aaaaaaa as your prod instance and bbbbbbbbb as your DR instance.