We're experiencing a very slow connection with RDS (Oracle) when connecting to its public IP from internet (outside VPC with a 1Gbps internet connection). The RDS instance is in a public subnet with a public IP enabled. I do a simple select from a large table and I get 300 row/s when connected to the database (via its public IP) from my computer, but from an EC2 inside the same VPC, I get +10000 row/s for the same request. I am located in France and rds db is in Frankfurt datacenter, I'm guessing this is due to a network bottleneck.
What I've tried so far :
- EC2 in same VPC connecting to RDS (via private IP), I get ~10000 row/s
- EC2 in same region -> RDS (via public IP): ~10000 row/s
- local computer -> RDS (via public IP): 300 row/s
- local computer -> SSH in EC2 bastion in same VPC as RDS -> RDS (private IP): 300 row/s
- Copy DB to Paris datacenter and access it over public IP from my computer: 1000 row/s
I am running a t3.small instance with a gp2 100Go disk but I've tried upgrading to m5.large, with a larger 500Go disk (as this would increase the IOPS) but I'm getting the exact same results, still stuck with network limitations.
Thing is, we have to copy large amounts of data on a regular basis, from an on-prem db to rds db. From the results I get, this is due to a network bottleneck but I wanted to know if anyone had the same use-case and found a workaround to this. I've searched stack overflow (and others) and found similar questions with no answers :(
I would prefer to avoid a costly Direct Connect and I'm not sure an AWS VPN connection would speed that up...
Thanks !