& quot;同时&"如何仅在更改Azure角色实例计数时是否可以工作? [英] How does "simultaneous" mode work when changing Azure role instance count only?

查看:49
本文介绍了& quot;同时&"如何仅在更改Azure角色实例计数时是否可以工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正盯着更改部署配置Azure管理服务操作.有一个 Mode 元素可以设置为 Simultaneous .

I'm staring into description of Change Deployment Configuration Azure Management Service operation. There's Mode element which can be set to Simultaneous.

假设我只想更改特定角色的实例数.AFAIK唯一的方法是获取当前的部署配置(使用获取部署操作),找到获取的XML中的角色,找到负责实例计数的属性,更改该属性,然后在更改部署配置操作中使用更改后的配置.

Suppose I only want to change instance count for a specific role. AFAIK the only way to do that is to obtain the current deployment configuration (using Get Deployment operation), locate the role in the obtained XML, locate the attribute responsible for instance count, change that attribute and then use the altered configuration in Change Deployment Configuration operation.

假设我还将 Mode 设置为 Simultaneous .与默认值相比有什么区别?

Suppose I also set Mode to Simultaneous. What will be the difference compared to default?

推荐答案

发生配置更改(配置设置的常规配置更改或规模更改)时,Azure结构将一次遍历一个升级域并应用配置设置.通过同时升级,Azure结构将配置更改同时应用于所有升级域中的所有实例.

When a configuration change happens (either a normal config change of a config setting, or a scale change) the Azure fabric will walk the upgrade domains one at a time and apply the configuration setting. With simultaneous upgrade the Azure fabric will apply the configuration change to all instances in all upgrade domains at the same time.

如果将模式设置为同时",则取消RoleEnvironment.Changing事件以在配置更改期间回收实例的服务将遇到整个服务中断的情况.

Services which cancel the RoleEnvironment.Changing event in order to recycle the instance during a config change will experience an entire service outage if the mode is set to simultaneous.

请参见 查看全文

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