English 中文(简体)
- 在重新担任职务或因派任而放弃职务时,不得进行降职活动
原标题:Azure - RoleEnvironement events not firing when role is rebooted or taken down for patching
  • 时间:2012-01-12 15:32:50
  •  标签:
  • azure

简言之,在我部署过程中的任何其他作用被重新boot或脱节时,我是否能够在法典中处理环境事件?

我在制作中提出一种应用,既可发挥网络作用,又可发挥网络作用,将全球合作框架服务作为应用层面(业务逻辑、数据获取等)。 网络层在内部端点与世界合作框架层进行沟通,因为此时此刻我们不想暴露这些服务。 因此,这意味着不可能使用负荷平衡器把我的服务层划为单程。

So I have to load balance requests to the WCF web roles manually. This has caused problems in the past when a machine has been recycled by the fabric controller for patching.

I m handling the RoleEnvironment.Changing and RoleEnvironment.Changed events to adjust the list of backend web roles I am communicating with, which works well in testing when I make a configuration change to increase or decrease the number of instances in my deployment. But if I reboot a role through the portal, this does not fire the RoleEnvironment events.

Thanks, Rob

最佳回答

作用 环境。 改动将发射,然后改为serviceposition<>(米重点)。 在这种情况下,没有组合<>。 正在发生变化,你的服务仍为组合<>,其数量恰好相同。 AFAIK没有办法知道你何时进行部署,而且很明显,它们是提前通知cannot(例如硬件故障)的事例。 因此,你必须就通信失败、拦截错误和尝试另一种作用。

问题回答

我不认为你可以轻松地拦截不同角色的环境变化。

我建议,如果发生环境变化,你就能够发挥作用,通过向某些持续存在的储存传递信息/记录,处理这些变化。 万维网探测器检查,定期储存,或每次在你向世界功能中心传送时储存。

基本来说,如果你重新进行内部负荷平衡,你需要一个机制,登记/减少你的情况,以便你能够管理你的轮椅工人。

如果角色正在发挥,而且工人的作用能够倾听并相应调整情况,那么你可以使用“ storage”电。





相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...