Did not use EC2, but you also need:
(a) add your interface to some kind of user service mode that you define when switching IP; and the front panel takes the necessary steps to manage potential data integrity and data loss issues associated with the previous server, and the new server when it enters and leaves your user maintenance mode
OR, for a zero latency system:
(b) designing the system at the facility / relational and transaction level from scratch to support failure with zero downtime. This is not something you can point to quicjkly on any application.
(c) use some database support to automatically fail over. I do not know if SQL Server support for fault tolerance exists that is suitable for your application or is relevant here. I suggest adding the "sql-server" tag to the question to start searching for the right audience.
If Elastic IPs do not work (which sounds strange if you don't talk about it with EC2), you may need to instruct your interface for which the new database IP address will be used at the same time, as they say, to go from maintenance mode to normal mode.
martinr
source share