【发布时间】:2020-02-06 13:11:13
【问题描述】:
阅读文档时:https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#swap-operation-steps,第 4 步,这是指定的:
如果通过自定义预热启用自动交换,则触发应用程序 通过向应用程序根 ("/") 发出 HTTP 请求来启动 源槽的每个实例。
如果未指定 applicationInitialization,则触发 HTTP 请求 到每个实例上源槽的应用程序根目录。
如果实例返回任何 HTTP 响应,则认为它已被加热 起来。
这是否意味着 1) 必须启用自定义预热才能使交换调用 root(或任何其他 url),或者 2) 如果未启用自定义预热,它会调用 root?不管 1) 还是 2):如果什么都不指定,返回的所有状态码都告诉交换进程该 slot 已预热?
更新 我阅读文档的方式 (https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#swap-operation-steps):
... App Service does the following to ensure that the target slot doesn't experience downtime:
1. ...
2. ...
3. ...
4. If auto swap is enabled with custom warm-up, **[AppService will]** trigger Application Initiation by making an HTTP request to the application root ("/") on each instance of the source slot.
If applicationInitialization isn't specified, **[AppService will]** trigger an HTTP request to the application root of the source slot on each instance.
If an instance returns any HTTP response, it's considered to be warmed up.
5. ...
但我好像读错了?
【问题讨论】:
标签: azure azure-deployment-slots