即使实例计数设置为1,Web应用程序也可以运行多个实例吗? [英] Can a web app run multiple instances, even when the instance count is set to 1

查看:74
本文介绍了即使实例计数设置为1,Web应用程序也可以运行多个实例吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使将应用程序实例设置设置为1,是否有可能同时运行一个应用程序的多个实例?

Is it possible to have multiple instances of an app running concurrently even when the app instance setting is set to 1?

我们有一个Web应用程序,该应用程序会在启动和停止时进行记录.目前,即使我们尚未配置横向扩展,它也显示正在运行两个实例.是不是Azure的HA实例在后台运行?

We have a web app, that logs when it starts and stops. At the moment it is showing as running two instances, even when we have not configured scale out. Could it be that Azure has an instance running in the background for HA?

不幸的是,该应用程序仅依赖于一次运行的一个实例,因此,如果不能保证,我们可能需要进行一些更改.

Unfortunately the application relies on only one instance running at any one time, so we may need to make some changes if that isn't guaranteed.

有什么想法吗?

Andrew

推荐答案

我的猜测是,您的应用在两个实例上短暂运行,以确保在实例因平台升级或其他更改而更改.没有实现就可以提供HA的现成功能 交通经理.您的应用程序是否依赖于亲和力,因此它总是命中同一实例?有关平台升级的更多详细信息,请参见下面的链接.

My guess is that your app was briefly running on two instances to make sure your application was fully available when an instance changed due to a platform upgrade or some other change. There is no feature out of the box that provides HA without implementing traffic manager. Does you app depend on affinity so it always hits the same instance? For more details on platform upgrades see the link below.

https://blogs.msdn.microsoft.com/appserviceteam/2018/01/18/demystifying-the-magic-behind-app-service-os-updates/

https://blogs.msdn.microsoft.com/appserviceteam/2018/01/18/demystifying-the-magic-behind-app-service-os-updates/


这篇关于即使实例计数设置为1,Web应用程序也可以运行多个实例吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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