azure-worker-roles

Azure inter-role synchronization

末鹿安然 提交于 2019-12-07 04:48:11
问题 I was wondering about the best practices in synchronizing multiple azure instances that run the same role. More precisely, I want to prevent several worker roles to work on the same work-unit. Azure queues do not seem to help on this matter. One option is to use an sql table with locks and stored procedures; but using sql synchronization in Azure seems a bit awkward. Any ideas? Edit, my detailed(but simplified problem) is as follows: There are n targets. A unit of work must be done on each

Azure Worker Role with HTTP input endpoint on port 8732 with HTTP 405 Error

拈花ヽ惹草 提交于 2019-12-06 17:09:31
问题 Ok, just to clarify - I have tried every site, every article and forum so far for this problem. I have implemented everything mentioned everywhere, it works in the emulator as well. Basically I have this worker role which exposes WCF services with basichttpbinding, custombinding and wshttpbinding. In the cloud, the service starts without errors, I can even access the WCF URL via HTTP from the browser from within the azure VM. But, when I try to access the same URL from http://x.cloudapp.net

Sending Akka.net cluster gossip to Azure worker role console

三世轮回 提交于 2019-12-06 14:04:03
问题 I'm developing an Azure cloud service including multiple worker roles that form an akka.net cluster. How do I accomplish getting the cluster gossip and other messages end up in the compute emulator console windows? 回答1: At the moment I'm working on an Akka.NET cluster that will be hosted as Azure Cloud Services and ran into the same problem. The quickest way I found to accomplish this is to write a logging adapter (though I' still relatively new to Akka.NET, so take this advice with a pinch

How to edit Firewall rules in code successfully on a Worker Role Instance?

拈花ヽ惹草 提交于 2019-12-06 12:07:32
问题 I'm trying some code that works locally but it doesn't work on my cloud instance. I assume it may be permissions related, but I'm unable to fix it yet. Here is what I have which works when I debug my worker role locally, but nothing happens when it is published (on staging right now). string strCmdText = string.Format("advfirewall firewall add rule name=\"BlockU\" protocol=any dir=in action=block remoteip={0}", ip); ProcessStartInfo psi = new ProcessStartInfo("netsh.exe", strCmdText); psi

Restart Azure Worker Role from Web Role

南笙酒味 提交于 2019-12-06 11:55:46
I have a Worker Role that executes code (fetching data and storing it to Azure SQL) every X hours. The timing is implemented using a Thread.Sleep in the while(true) loop in the Run method. In the Web Role I want to have the abillity to manualy start the code in Worker Role (manualy fecth and store data in my case). I found out that the whole Worker Role can be restarted using the Azure Management API but it seems like an overkill, especialy looking at all the work needed around certificates. Is there a better way to restart Worker Role from Web Role or have the code in Worker Role run on

Cannot inject dependencies to Azure WorkerRole object using Spring.NET

巧了我就是萌 提交于 2019-12-06 08:47:07
问题 I have moderate experience in developing web applications using spring.net 4.0 , nhibernate 3.0 for ASP.net based web applications. Recently I ran into a situation where I needed to use spring.net to inject my service dependencies which belong to the WorkerRole class. I created the app.config file as I normally did with the web.config files on for spring. Here it is for clarity. (I have excluded the root nodes) <configSections> <sectionGroup name="spring"> <section name="context" type="Spring

Alerts for exceptions in an Azure worker role

你说的曾经没有我的故事 提交于 2019-12-06 07:23:59
Is there an easy way to send an alert or notification in the Azure Management portal if a worker role throws an exception or has an error? I am using Azure 2.5 I have tracing and diagnostics all set up and can view the logs in the server explorer of Visual studio, but is there anyway to set an alert if for example and error message appears in the logs. I know you can set up alerts for monitoring metrics in the Management portal is there an easy way to add metrics for errors and exceptions? Or someway to get C# exception code to create notifications or alerts in the Azure Management portal? I

Azure Compute Service worker becomes “busy” following scale-up

懵懂的女人 提交于 2019-12-06 06:03:41
I'm running one service in Azure with 4 worker instances. When I scale up to 5 worker instances the first instance that had started goes into the "busy" state. Why is that? What happens during scale up? Does azure re-run all the startup tasks? I'm very confused and can't seem to find any documentation on this. After scaling up to 5 instances the first instance changes its status to: Busy (Waiting for role to start... Application startup tasks are running. [2014-08-12T18:36:52Z]) And the java process that was running there stops. Why would this happen?! Any help would be appreciated. Startup

ServiceBus RetryExponential Property Meanings

空扰寡人 提交于 2019-12-06 05:11:43
问题 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

WCF service over HTTP in an Azure worker role?

↘锁芯ラ 提交于 2019-12-06 04:07:08
I understand that you are able to open port 80 on an Azure worker role and run a WCF service publicly. I am, however, having trouble coming up with a scenario where it makes more sense to do it this way as opposed to running in a web role. Any ideas? A WCF service hosted in a worker role will essentially be self-hosted: From your OnStart(), you'd create a new ServiceHost() and go from there. A WCF service hosted in a web role would be taking advantage of IIS to host the service, as an svc, taking advantage of IIS performance counters, caching, automatic activation, process recycling, etc. Even