Cloud Run直接VPC出站连接超时问题排查求助
间歇性连接超时问题排查疑问
我有一台运行MySQL和Redis的Compute Engine虚拟机,以及一个连接这些数据库的Cloud Run服务。近期从使用VPC connector切换为direct VPC egress后,出现间歇性连接问题:
File "uvloop/loop.pyx", line 2039, in create_connection File "uvloop/loop.pyx", line 2016, in uvloop.loop.Loop.create_connection TimeoutError: [Errno 110] Connection timed out
我的Cloud Run服务运行Python API,使用aiomysql连接MySQL,redis(4.3.4版本)连接Redis,两种场景下均偶尔出现上述连接超时错误。
我发现该问题常出现在Cloud Run服务启动更多容器时,是否可能是Cloud Run预留静态内部IP的延迟导致?
我原本有基于network tags的防火墙策略允许VM访问,是否防火墙识别network tags存在延迟?
- 更新: 我已扩展防火墙规则,允许Cloud Run使用的子网访问,network tags不再相关。
内容的提问来源于stack exchange,提问作者kym
相关产品推荐
相关产品推荐

