当我我的扩展Azure角色下降,这实例都停止了? [英] Which instances are stopped when I scale my Azure role down?

查看:97
本文介绍了当我我的扩展Azure角色下降,这实例都停止了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有三个实例运行Azure角色。我问的Azure或者通过管理门户或通过管理接口来改变角色计数为两个。

Suppose I have an Azure role with three instances running. I ask Azure to change the role count to two either by Management Portal or via Management API.

如何将Azure的决定采取哪个角色了吗?

How will Azure decide which role to take down?

推荐答案

由于英国开发者,在Windows Azure结构控制器实例决定关闭哪些。你无法控制这个过程。我不认为这永远是最后一个号码,因为我不知道是否关停后织物控制器不重命名实例。因此,即使关闭IN_1,在该过程结束时,我们仍会有IN_0和IN_1,instated IN_0和IN_2为例子。

As British Developer mentioned, the Windows Azure Fabric Controller decides which instances to shut down. You cannot control this process. I don't think it is always the last number, because I am not sure whether the fabric controller does not rename the instances after shutting down. So even if it shuts down IN_1, at the end of the process we will still have IN_0 and IN_1, instated of IN_0 and IN_2 for example.

您可以使用 RoleEnvironment.Stopping 事件来处理您的实例的正确停止(正常关机)。虚拟机中取出负载平衡器旋转和之前的<一后正在引发此事件href=\"http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleentrypoint.onstop.aspx\"相对=nofollow>您RoleEntryPoint类的调用OnStop方法被调用。

You can use the RoleEnvironment.Stopping event to handle the proper stopping (clean shutdown) of your Instance. This event is being raised after the VM was taken out of Load Balancer rotation and before the OnStop Method of your RoleEntryPoint class being called.

我不知道,我说,但我知道,有中,你必须完成您的清洁很难限制,即我认为I 5分钟的等待调用OnStop或停止处理器(后实例将被关闭不记得确切,但fabrci控制器不会永远等你清理)。

I am not sure where I noted, but I know that there is a hard time limit in which you have to complete your cleaning, i.e. I think the Instance will be shutdown after 5 minutes of waiting the OnStop or Stopping handler (I can't remember exactly, but the fabrci controller will not wait forever for you to clean up).

这篇关于当我我的扩展Azure角色下降,这实例都停止了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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