可以不通过Cloud Nat路由的Google API的App Engine的流量通过无服务器VPC访问连接器进行操作吗?

发布于 2025-02-02 16:43:06 字数 568 浏览 5 评论 0原文

我们已经设置了VPC无服务器访问连接器,并配置了App Engine将其在App.yaml中使用。我们有egress_setting:全部交易设置,因为我们想从特定的IP地址访问第三方API。我们从

我们的一部分测试是在应用引擎上击中大量URL并检查HTTP状态。在此测试中,我们注意到使用连接器时的服务请求速率有所降低。由于所有出口流量都是通过连接器路由的,因此我的第一个倾向是认为我们对Google API(数据存储,云存储,云SQL)的应用程序的使用受到影响。

连接器仍然具有最小数量的实例,这表明我们尚未达到其性能的限制,这不是瓶颈。但是,使用vpc_access_connector从app.yaml删除将性能返回到我们以前拥有的功能。

我已经尝试在连接器链接到子网的子网上启用私有的Google访问,但这并没有改善情况。

我认为我们可能需要添加一些路由规则,使我们可以将Google API的流量直接发送到Google的服务,而不是通过Cloud Nat,但我不确定适用哪些规则。我认为这是不可能的理由,但是我还没有找到正确的文档来指导我在这里。

这可能吗?这是在某个地方记录的吗?

We have set up a VPC Serverless access connector, and configured app engine to use this in app.yaml. We have egress_setting: all-traffic set, as we want to access a 3rd party API from a specific IP address. We used the documentation from https://cloud.google.com/appengine/docs/standard/python3/outbound-ip-addresses#static-ip.

Part of our testing is hitting a large set of URLs on app engine and checking the HTTP status. In this testing we noticed a dramatic reduction in the rate of serving requests when using the connector. Since all egress traffic is routed via the connector, my first inclination is to think our applications usage of Google APIs (datastore, cloud storage, Cloud SQL) is being impacted.

The connector is still has the minimum number of instances as active instances, indicating we have not reached the limit of it's performance, and that this is not the bottleneck. However, retesting with the vpc_access_connector removed from app.yaml returns performance to what we previously had.

I've tried enabling Private Google Access on the subnet the connector is linked to, but this has not improved the situation.

I think we may need to add some routing rules that allow us to send the traffic for Google APIs directly to Google's services, and not through the cloud NAT, but I'm unsure as to what rules would be applicable. I see no reason why this is not possible, but I haven't found the right documentation to guide me here.

Is this possible? Is this documented somewhere?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文