与“生产”插槽的暂存插槽交换成功但导致重新编译 [英] Staging slot swap with 'Production' slot succeeds but causes recompile

查看:110
本文介绍了与“生产”插槽的暂存插槽交换成功但导致重新编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到本周才开始工作。 任何配置都没有插槽设置。

This was working fine up until this week. There are no slot settings in any of the configurations.

我有一个带有暂存插槽的应用服务。无论我尝试什么,与生产槽交换都会导致两个插槽重新编译应用程序。当我执行交换时,不会显示或预期配置更改。

I have an app service with a staging slot. No matter what I try, swapping with the production slot causes both slots to recompile the app. When I perform the swap, no configuration changes are displayed or expected.

我已尝试删除并重新创建暂存插槽(并从生产中复制配置)。同样的问题和两个插槽总是被重新编译。

I have tried deleting and re-creating the staging slot (and copying the configurations from production). Same issue and both slots are always recompiled.

我尝试创建第二个临时插槽(从staging1复制的配置)并使用staging2交换staging1,这确实_not_导致重新编译任一插槽!但是将staging2与生产交换会导致重新编译。

I have tried creating a 2nd staging slot (config copied from staging1) and swapping staging1 with staging2, and this does _not_ cause a recompile for either slot! But swapping staging2 with production causes a recompile.

有没有人有任何想法?我即将尝试创建一个新的应用服务,并将生产转移到那里。

Does anybody have any ideas? I'm about to try to just create a new app service, and move production there.

推荐答案

嗨Adam,



插槽交换过程包括以下步骤:



1.从生产槽中读取特定于插槽的设置并将其应用于暂存插槽中的站点。 



2.然后,临时插槽中的站点变热。为了预热站点,会向站点的根目录发出HTTP请求,以请求运行站点的每个VM实例。预热请求的User-Agent标头设置为"SiteWarmup"。



3.生产和临时插槽中的站点的主机名称将被交换。现在,在暂存槽中已预热的站点开始获得生产流量,而以前位于生产槽中的站点现在位于暂存槽中。



4.现在位于暂存插槽中的站点将使用与暂存插槽关联的应用程序设置和连接字符串(插槽特定设置)进行更新

Hi Adam,

The slot swapping process includes below mentioned steps:

1. Slot Specific Settings are read from the Production slot and applied to the site in the Staging slot. 

2. Then the site in the staging slot gets warmed up. To warm up the site an HTTP request is made to the root directory of the site to every VM instance where site is supposed to run. The warm up request has a User-Agent header set to "SiteWarmup".

3. Host names for the sites in production and staging slots get swapped. Now the site that has been warmed up in the staging slot starts getting production traffic and the site that used to be in the production slot is now in the staging slot.

4. The site that is now in the staging slot gets updated with the App Settings and Connection Strings (Slot Specific Settings) associated with the staging slot

我们可以在Azure Web App期间预热Azure Web App部署插槽交换。请关注
this
加热webapp的文章。

We can warm up the Azure Web App during deployment slots swap. Please follow this article to warm the webapp.

希望这会有所帮助!


这篇关于与“生产”插槽的暂存插槽交换成功但导致重新编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆