阅读文档时: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):如果没有指定,返回的所有状态码都告诉交换进程该插槽已预热?
更新 我阅读文档的方式(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. ...
但似乎我读错了?