azure-worker-roles

Remote Debugging Azure Worker Role

青春壹個敷衍的年華 提交于 2019-12-04 11:37:44
There are a million links like this one http://blogs.msdn.com/b/cie/archive/2014/01/24/windows-azure-remote-debugging.aspx , which more or less would seem to take care of the remote debugging setup. I have done this many times in VS 2013 Update 2, deployed, then attached to debugger and it simply does not work. Well, the debugger seems to attach, but I continually get the message when I hover over a break point informing me that 'The breakpoint will currently not be hit. No symbols have been loaded for this document' A while back I recall seeing a channel 9 presentation and they seemed to

ServiceBus RetryExponential Property Meanings

只愿长相守 提交于 2019-12-04 09:45:48
I'm having a hard time understanding the RetryExponential class that is used in conjunction with QueueClients (and I assume SubscriptionClients as well). The properties are listed here , but I don't think my interpretation of their descriptions is correct. Here's my interpretation... var minBackoff = TimeSpan.FromMinutes(5); // wait 5 minutes for the first attempt? var maxBackoff = TimeSpan.FromMinutes(15); // all attempts must be done within 15 mins? var deltaBackoff = TimeSpan.FromSeconds(30); // the time between each attempt? var terminationTimeBuffer = TimeSpan.FromSeconds(90); // the

Deploying Multiple Web Roles and Worker Roles on a Single Azure Cloud Service

邮差的信 提交于 2019-12-04 07:20:57
This may not be new, but I hope some one can put me on right track as its bit confusing during azure deployment. I'm in the process of planning for deployment on Azure. This is what I have A Public facing ASP.Net MVC app (web-role) + WCF Service (web-role) to be accessible only to this asp.net app + WCF Service (worker-role) again accessible to 1. over message-queue An Custom STS i.e. ASP.NET MVC app (web-role) acting as Id-Provider (for 1. which is a Relying Party) + WCF Service (web-role) to expose some of STS funcionality to RP's such as 1. SQL Azure: accessed by 1 and 2 Note: 1. will

Role cannot be reached by the host system Azure- WorkerRole

狂风中的少年 提交于 2019-12-04 04:24:15
I'm using the Worker Role machines (Medium -> 2 Cores with 3,5 GB of Ram) to do massive work, and I'm able to use 100% of the CPU (of both cores) and 85% of RAM. During this work, each takes around 20 minutes/ 40 minutes the Azure thinks the machine is unhealthy and stops all my work. In the Portal I see my worker instance are getting the message "Waiting for the status (Role cannot be reached by the host system). Can anyone know a work around that doesn't include: 1) Use a more power full Role with cores that I will not use 2) Try to reduce the CPU usage by my application (100% CPU usage is

Getting a Service to Run Inside of an Azure Worker Role

做~自己de王妃 提交于 2019-12-03 09:32:16
问题 I have a windows service that I need to migrate to onto Azure as a Worker Role. Everything builds fine in my Azure solution. However, when I upload everything only the web role starts. The worker role instance gets stuck cycling between the following two statuses without ever starting. Waiting for the role to start... Stabilizing role... Since the instance is failing to start I suspect my problem lies somewhere in my WorkerRole.cs code. Below you'll find that code. I've also included the code

Restarting Azure Worker role “WaWorkerHost.exe” manually

眉间皱痕 提交于 2019-12-03 07:36:45
As I understand Azure Worker roles run by the help of Host application called WaWorkerHost.exe and there is another application called WaHostBootstrapper.exe which checks if WaWorkerHost.exe is running and if not it will run the WaWorkerHost.exe . How often does this 'worker role status check' occurs? How can I quickly restart the Worker role myself? I can either reboot the machine worker role is running and wait for few minutes or chose the following traditional method: Taskkill /im /f WaWorkerHost.exe and wait for few minutes for the WaHostBootstrapper.exe to kick in but this very

Using QueueClient.OnMessage in an azure worker role

你。 提交于 2019-12-03 03:12:09
问题 I have an Azure worker role that is responsible for checking 4 service bus queues. Currently, I just the looping method to manually check the queues. while(true) { //loop through my queues to check for messages } With the Azure SDK 2.0 came the ability to listen for messages rather than polling for them. But Every example I've seen uses a console app with Console.ReadKey(). Is there a way to have the worker role sit and wait on messages too? I tried: public override void Run() {

Azure Worker Role Config File Transformations

混江龙づ霸主 提交于 2019-12-03 02:53:16
I've setup a new worker role and setup a couple of new config transforms for it via SlowCheetah. When I build the project with one of the new configs selected, I do in fact see that configs folder get created underneath the \bin folder as you would expect (for ex. \bin\Production). When I package a cloud service for deployment using one of the new configs, my web projects get their configs transformed appropriately but my worker role (which is just a library) does not even though I see underneath the \bin folder an updated \bin\production. It would appear the azure packaging tooling is

How to connect Azure Web Sites to a Worker Role (TCP) through a (regional) vnet? Is it possible?

血红的双手。 提交于 2019-12-02 06:21:50
问题 How would one make a TCP connection from an Azure PaaS hosted Web Sites to a Worker Role? That's deployed in one virtual network. Can this be done without opening an Input Endpoints, Internet facing port on the worker role? It looks like WebSites cannot currently be part of virtual network deployments as per Azure Virtual Network FAQ: Can I use Windows Azure websites with Virtual Network? No. We do not support websites with virtual networks. I'm new to Azure and playing with various

How to use a Timer to replace Thread.Sleep(…) in an Azure Worker Role?

痴心易碎 提交于 2019-12-02 06:07:32
问题 There's plenty of examples of people saying to use a Timer instead of Thread.Sleep(...) in an Azure Worker Role . No probs with that. What I'm struggling to understand is how to code this. Currently, I have the following (pseduo code) _timer.Elapsed += (sender, args) => DoWork(); public override void Run() { while(true) { DoWork(); } } public void DoWork() { try { _timer.Stop(); // Now - do stuff .... } catch(....) { ... } _timer.Start() } And what happens, is that the code enters the DoWork(