Azure部署插槽问题 [英] Problems with Azure deployment slots

查看:70
本文介绍了Azure部署插槽问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两次部署广告位,每个广告位的流量为50%,这是一个页面,其中包含一些html/css差异,有时它会从第一个广告位加载html, css/images(来自第二个)或相反的图像,这会导致页面中断.

I have two deployments slots, with 50% traffic each, it's a page with some html/css differences, sometimes it loads the html from the first slot and css/images from the second, or the opposite, which causes the pages to break.

我正在使用它进行A/B测试,并且它正在Edge,Firefox和Chrome浏览器中发生.

I'm using it for an A/B test and it's happening with Edge, Firefox and Chrome.

推荐答案

生产中的测试"静态路由功能可让您控制如何在您的产品和其他广告位之间分配流量.通常是 如果您希望尝试使用少量请求进行新更改,然后逐渐增加获得新行为的请求百分比,则可以利用此功能.由于您已将百分比设置为50%,因此预计这两个广告位都可以投放该百分比 一样.话虽如此,您提到了哪个 会导致中断页面",请您提供更多详细信息,并查看它的响应方式 设置了不同的百分比.

The ‘Testing in production’ Static Routing feature, lets you control how traffic is distributed between your production and other slots. And it’s typically leveraged if you wish to try out to new change with a small percentage of requests and then gradually increase the percentage of requests that get the new behavior. Since you have set the percentage to 50%, so it is expected to get served by both the slots equally. Having said that, you mentioned that the "which causes the pages to break", could you please provide more details on this and see how it responds with a different percentage set.

只需突出显示 交换源广告位时会发生什么情况(我们称其为"Staging")放入目标位置(生产).

Just to highlight on what happens when you swap a source slot (let's call it 'Staging') into a target slot (Production).

  1. 首先,登台站点需要进行一些操作标记为插槽"的应用设置"和连接字符串"的设置更改.还有其他 可能需要应用与源代码管理相关的更改.
  2. 现在,登台站点很温暖,它变得交换为生产.
  1. First, the Staging site needs to go through some setting changes for App Setting and Connection Strings that are marked as 'slot'. There are also other changes related to source control that may need to be applied. This causes the Staging site to restart, which is fine.
  2. Next, the Staging site gets warmed up, by having a request sent to its root path (i.e. '/'), and waiting for it to complete.
  3. Now that the Staging site is warm, it gets swapped into Production. There is no down time, since it goes straight from one warm site to another one.
  4. Finally, the site that used to be Production and is now Staging also needs to get some settings apply, causing it to restart. Again, this is fine since it happens in the staging site.

请参阅, 了解站点交换以获取更多详细信息.

See, Understanding site swaps for more details.


这篇关于Azure部署插槽问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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