I have the RDS server at Japan and two EC2 instances, one in the EU and the second in Japan.
I am running one application on the Japan EC2 instance which connects to the RDS (Japan). In this application I am simply selecting the data from the database in 200 threads simultaneously and it is working fine without any error.
But when I run the same application on the EU's EC2 instance with the 200 threads which contact to the RDS (Japan) at that time I get the following error..
System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
Obviously, there will be network latency between the EU EC2 and Japan RDS.
Is there are any settings to help me to ignore this error and successfully contact 200 connections from EU's EC2 instance to the Japan RDS ?