How to handle DB connection timeout/connection failure?

I am about to move my production PostgreSQL DB to a managed DB from Digital Ocean. So, there is a possibility for a down time during the maintenance/back up procedures which may last up to 10 seconds. How to effectively handle this DB down time without getting the rails application crashed? I read about ‘reconnect: true’ in database.yml. But not sure it will work for PostgreSQL. Any suggestions?

For this instance, there are too few connections in the pool to handle the volume of requests, so it is necesary to increase the size of the available pool.

  1. Change default time-out setting.
  2. Adjust LAN Settings.
  3. Edit Windows 10 Hosts File.
  4. Renew DNS and IP.
  5. Disable problematic extensions.
  6. Reset your browser to default.
  7. Run your browser in Compatibility mode.
  8. Remove Trusteer Rapport.