我可以使用哪些日志来诊断GCE网络上的连接问题?
在Google Cloud上,我们使用以下内容:
- 运行的服务的云功能,
- 连接到GCE VM上
- 通过VPC访问连接器
其运行良好数月,然后突然停止工作,并且所有尝试连接到服务原因的尝试我们的云功能日志中的以下错误:
连接到10.xxx的时间。 (连接超时= 10)
IP地址是VM的IP地址。
在这一点上,我不确定如何诊断问题,因为我不熟悉GCE网络。我应该在云日志记录中搜索什么来尝试确定问题的根本原因?
On Google Cloud we are using the following:
- A Cloud Function that connects to
- A service running on a GCE VM
- via a VPC Access Connector
Its been running fine for months then all of a sudden it stopped working and all attempts to connect to the service cause the following error in our Cloud Function logs:
Connection to 10.X.X.X timed out. (connect timeout=10)
That IP address is the IP address of the VM.
At this point I'm not sure how to go about diagnosing the problem as GCE networking is unfamiliar to me. What should I be searching for in Cloud Logging to try and determine the root cause of the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用云日志记录来检查GCE网络的日志。您检查一下:
有关云记录的更多信息,您可以探索此 link 。
You can use Cloud Logging to check the logs of your GCE Networking. You check it on:
For more information about Cloud Logging you can explore this link.
我发现,通过过滤
resource.type =“ gce_subnetwork”
这些日志提供了有关网络流量的更详细的信息,可以通过过滤
resource.Type =“ GCE_SUBNETWORK”来获得更详细的日志。
I've discovered that much more detailed logs are available by filtering on
resource.type="gce_subnetwork"
These logs provide much more detailed information about the network traffic.