我在 Google Cloud 项目中启用了 Google App Engine my-project
,
App Engine 的 URL 是 my-project.appspot.com
默认情况下,这很好。
但是,我发现有时它会变成 my-project.df.r.appspot.com
(在我的 App Engine 控制台中),这使我的应用引擎项目在内部使用完全不同的主机名。
有人知道这里发生了什么吗?谢谢。
最佳答案
你见过这个页面吗?
https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed
您可以通过多种方式在单个 GCP 项目中定位不同的版本和服务。
然而,他们中的大多数都拼出了-dot-
而不是使用实际的 .
他们中的大多数人都有MY_PROJECT_ID
和之前的一样.appspot.com
.
您的环境中是否有多个服务或版本在运行?
编辑 - 我在 Appengine Flex 发行说明中找到了这个:
App Engine is changing the URLs that you use to send requests to your apps. You can now include a region ID to help Google route your requests more efficiently and reliably. For example, an app can receive requests at https://PROJECT_ID.REGION_ID.r.appspot.com. This new URL is optional for existing apps, and will soon be required for all new apps.
https://cloud.google.com/appengine/docs/flexible/python/release-notes
我没有看到我的弹性服务发生这种情况,但我看到它发生在我的自定义运行时服务上。你的是其中一个吗?
关于google-app-engine - 为什么我的谷歌应用引擎有域名 'my-project.df.r.appspot.com' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60077636/