Drastic Increase in Latency When Serverless VPC Access Connector Enabled

Hey all - I have a Cloud Run service that I need to have an outbound IP, however when its enabled we see latency increase to 30-40 seconds with only 3-4 users on the app. When I remove the Serverless VPC Access Connector, we get amazing performance. Any recommendations?

Try the Direct VPC https://cloud.google.com/run/docs/configuring/vpc-direct-vpc feature. I don’t know if it will get you parity with the latency of Cloud Run’s regular egress path, but it should be faster than VPC Connectors.

Hi @dallinbentley ,

Your question lacks a lot of information that can help us isolate why you are experiencing latency when removing Serverless VPC Access Connector on the setup.

  1. What were your Network Routes?

You have to confirm that your VPC routes are correctly configured. Make sure that there are no conflicting routes that might be causing traffic to take a suboptimal path.

  1. Was the VPC Access Connector Configuration optimized?
  • You have to make sure that you have selected the appropriate VPC network and subnet for your Serverless VPC Access Connector. Consider adjusting the number of minimum and maximum instances based on your workload.
  1. Have you checked the Quotas and Limits?
  • You might want to check if you are hitting any quotas or limits on your project, especially related to networking resources. If necessary, request a quota increase.