azure-worker-roles

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

三世轮回 提交于 2019-12-02 03:31:29
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 configurations and it looks like this is something that could perhaps be done with the new regional vnets

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

ε祈祈猫儿з 提交于 2019-12-02 01:55:51
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() method once and DoesStuff(tm) .. fine .. starts the timer (say .. with a 30 second interval) and then

How do I detect unexpected worker role failures and reprocess data in those cases?

回眸只為那壹抹淺笑 提交于 2019-12-02 00:03:33
I want to create a web service hosted in Windows Azure. The clients will upload files for processing, the cloud will process those files, produce resulting files, the client will download them. I guess I'll use web roles for handling HTTP requests and worker roles for actual processing and something like Azure Queue or Azure Table Storage for tracking requests. Let's pretend it'll be Azure Table Storage - one "request" record per user uploaded file. A major design problem is processing a single file can take anywhere from one second to say ten hours. So I expect the following case: a worker

How do I install OpenCV on Windows Azure?

孤人 提交于 2019-12-01 20:07:40
I am a beginner with Windows Azure and I want to make an app which does facial recognition on a video stream. Hence I need to install OpenCV (C++ Library). How do I do that? And how do I get the video stream from the client app? (I am in control of the client app as well). If the library simply needs to be on the path for your application to pick it up, then just add it as an item in the project you're deploying, and it will get uploaded up to Azure, and deployed alongside your application. If some commands are required to install it, you can use startup tasks . As for the video stream, you

How do I install OpenCV on Windows Azure?

别说谁变了你拦得住时间么 提交于 2019-12-01 19:32:07
问题 I am a beginner with Windows Azure and I want to make an app which does facial recognition on a video stream. Hence I need to install OpenCV (C++ Library). How do I do that? And how do I get the video stream from the client app? (I am in control of the client app as well). 回答1: If the library simply needs to be on the path for your application to pick it up, then just add it as an item in the project you're deploying, and it will get uploaded up to Azure, and deployed alongside your

Does Azure Worker Roles get charged $$ when they are Sleeping?

本小妞迷上赌 提交于 2019-11-30 23:25:40
I'm trying to figure out how to (roughly) calculate some expected costs for some worker roles I'm thinking about creating. TLDR; Does azure charge you $$ if your worker is Sleep(someTime) / Sleeping? Details The Azure Pricing Page states their pricing, per hour and per VM size. So to keep my question simple lets pretend I want to have 3 workers and each worker will be on a Small (A1) instance. Now - the kicker is this => time! So lets also pretend, that this is exactly what each worker does. Worker 1 : Do-Some-Work-That-Takes-1-Second-Exactly. Sleep(59000); Worker 2: Do-Some-Work-That-Takes-5

Does Azure Worker Roles get charged $$ when they are Sleeping?

梦想与她 提交于 2019-11-30 18:06:17
问题 I'm trying to figure out how to (roughly) calculate some expected costs for some worker roles I'm thinking about creating. TLDR; Does azure charge you $$ if your worker is Sleep(someTime) / Sleeping? Details The Azure Pricing Page states their pricing, per hour and per VM size. So to keep my question simple lets pretend I want to have 3 workers and each worker will be on a Small (A1) instance. Now - the kicker is this => time! So lets also pretend, that this is exactly what each worker does.

does multiple Azure worker role polling same Queue causes Dead Lock or Poison message

送分小仙女□ 提交于 2019-11-30 07:22:07
Scenario: if I've spin off multiple Worker roles or ONE Worker role with multiple threads, which polls the new messages in Azure Queue. Could someone please confirm if the this the correct design approach? The reason I would like to have many worker roles is to speed up the PROCESSJOB. Our application should be near real time, i.e. as soon as there are messages we should get, apply complex business rules and commit to AZURE DB. We are expecting 11,000 message per 3min. Thank you. David Makogon You may have as many queue-readers as you like. It's very common to scale out worker role instances,

FTP to Azure Blob Storage

白昼怎懂夜的黑 提交于 2019-11-30 06:44:56
I had to setup secure FTP to Azure Blob Storage using popular FTP clients (like FileZilla, for example). After doing lot of research, I came across a link that says: Deployed in a worker role, the code creates an FTP server that can accept connections from all popular FTP clients (like FileZilla, for example) for command and control of your blob storage account. Following the instructions of the link, I had implemented the same and deployed the worker role on Azure production environment and it was successful. But still I am not able to connect the FTP host server (provided by me in

How to create multiple threads in Windows azure worker role

两盒软妹~` 提交于 2019-11-30 04:18:00
I want to do multiple operations in a single worker role. How to create threads in worker role? You could add multiple workers in the WorkerRole::OnStart() as described here http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2010/12/running-multiple-threads-on-windows.html public class WorkerRole : ThreadedRoleEntryPoint { public override void Run() { // This is a sample worker implementation. Replace with your logic. Trace.WriteLine("Worker Role entry point called", "Information"); base.Run(); } public override bool OnStart() { List<WorkerEntryPoint> workers = new List<WorkerEntryPoint>();