我有一个在 Azure 网站上运行的 4.5 网站.我已经设置了暂存部署.我预热了两个站点,然后运行交换过程(来自 azure 门户和 Azure powershell).无论我尝试什么,交换过程都会重新启动我的网站(两者),并且它们需要大约 3 分钟才能启动.
I've a 4.5 website running on Azure Websites. I've a staging deployment set up. I warm up both sites and then i run the swap process (both from azure portal and from Azure powershell). No matter what I try the swapping process restarts my websites (both) and they take about 3 minutes to boot up.
我的印象是部署交换应该让网站保持温暖"并且没有停机时间?我的网站在大约 3 分钟内无法使用!
I was under the impression the deployment swapping was supposed to keep the websites "warm" and have no down time? My websites are unusuable for about 3 minutes!
据我所知,生产槽和暂存槽具有相同的应用程序设置等.
As far as I can tell both production and staging slots have the same application settings etc.
任何建议或指示将不胜感激.
Any advice or pointers would be greatly appreciated.
推荐答案Jeff 是对的.当为插槽定义了粘性应用程序设置或连接字符串时,网站的工作进程将在交换期间重新启动.在这种情况下发生的动作顺序是这样的:
Jeff is right. When there are sticky app settings or connection strings defined for the slot then the website's worker process will be restarted during the swap. The sequence of actions that happen in that case is this:
更多推荐
当我进行部署插槽交换时,为什么 azure 会重新启动网站?
发布评论