问题描述
目前,我有部署到Azure的在App免费服务计划的一个Web应用程序,作为上线的一部分,我很感兴趣,移动到使用的插槽。
I currently have a web application deployed to Azure on the App Service free plan and, as part of going live, I'm interested in moving to the use of slots.
这主要是因为它给了我部署新的code到舞台,然后无缝交换过一旦它被验证的能力。
This is primarily because it gives me the ability to deploy new code into staging and then seamlessly swap over once it's been validated.
现在,使用时隙,我知道我需要标准的计划,并为每一个虚拟机最低 $ X
这个时钟周期,
Now, to use slots, I know I need the standard plan and this clocks in at a minimum of $X
per VM.
我的有什么不的知道(和令人沮丧的没有能够从微软的网页Azure的东西,找出)是否是第二个插槽算作另一个VM。
What I don't know (and frustratingly haven't been able to find out from the Azure stuff on Microsoft's web pages) is whether a second slot counts as another VM.
在至少一个位置,它指出部署时隙是与自己的主机名实时网络应用,但可能在至少两个的方式来读出。无论是作为在同一个虚拟机或单独的虚拟机完全独立的应用程序。
In one place at least, it states that deployment slots are live web applications with their own hostname but that could be read in at least two ways. either as a separate app on the same VM or a separate VM altogether.
由于差异是巨大的( $ 2X /月
,而不是 $ X /月
),这是相当重要的规划。因此,没有人知道如何(与微软的一些配套引文pferably $ P $)的插槽处理,并收取?
Since the difference is substantial ($2X/month
rather than $X/month
), it's rather important to planning. So does anyone know how (preferably with some supporting citation from Microsoft) the slots are handled and charged for?
推荐答案
所有部署Azure的网站在相同的虚拟机实例给定的Web应用程序计划运行。只是,如果你在同样的计划部署 mysite1.azurewebsites.net
和 mysite2.azurewebsites.net
因为,他们会共享相同的虚拟机实例。所以,也做一些额外的部署插槽。
All deployed Azure sites in a given Web App plan run on the same VM instances. Just as if you deployed mysite1.azurewebsites.net
and mysite2.azurewebsites.net
in the same plan, they'd share the same VM instances. So, too, do extra deployment slots.
如果您扩展到3个实例,您支付3个实例,以及所有部署(所有插槽都部署)在所有三个实例运行。
If you scale to 3 instances, you pay for 3 instances, and all deployments (all slots for all deployments) run on all three instances.
要使它更容易些思考的一种方式:生产(或主的)部署插槽只是另一个插槽
One way to make this easier to think about: the 'production' (or main) deployment slot is just another slot.
这篇关于不要插槽算作虚拟机在Azure中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!