Configure GlassFish JDBC connection pool to handle Amazon RDS Multi-AZ failover
I have a Java EE application running in GlassFish on EC2, with a MySQL database on Amazon RDS. I am trying to configure the JDBC connection pool to in order to minimize downtime in case of database failover. My current configuration isn't working correctly during a Multi-AZ failover, as the standby database instance appears to be available in a couple of minutes (according to the AWS console) while my GlassFish instance remains stuck for a long time (about 15 minutes) before resuming work. The connection pool is configured like this: asadmin create-jdbc-connection-pool --restype javax.sql