azure-worker-roles

Are objects shared by different worker roles in Azure fabric service?

霸气de小男生 提交于 2019-12-14 04:23:21
问题 I am working on Asp.Net core with Azure service fabric. We have stateless service too. On the Azure portal we have 5 nodes and for each node we have 2 instances. I have implemented logging mechanism. I am using Dependency injection too. Whenever worker role pick up the record from database,there are few values till the time that record is processed because I need to log those values in my logging framework. I am using this value to track telemetry across all systems. Currently I have created

Azure Worker Role Testing

时光怂恿深爱的人放手 提交于 2019-12-13 18:41:02
问题 Can anyone suggest tools to Test worker role functionality on Azure? I want to test the worker role after deployment not on local machine. lets take an example, we have a library of songs. and I have created worker role to delete the songs those are added before 1 year. so to test this functionality, is there any tool available to test the worker role. like we use SOUPUI to test the Web service functionality. Kindly help thanks in Advance. 来源: https://stackoverflow.com/questions/35178502

Add private key file to Pageant from Azure local storage resource

无人久伴 提交于 2019-12-13 02:57:00
问题 I'm implementing a Cloud Service (worker role) application in Azure which can add private key files to Pageant from an Azure Local Storage. The p variable is a Process which starts cmd.exe as well. var filename = "pageant.exe"; var workerRoleStorageName = "PrivateKeys"; var privatekeyfilename = "ThePrivateKey.ppk"; var localResource = RoleEnvironment.GetLocalResource(workerRoleStorageName); var path = Path.Combine(localResource.RootPath, privatekeyfilename); p.StandardInput.WriteLine(filename

The paths Format is not supported exception

血红的双手。 提交于 2019-12-13 01:24:49
问题 I just installed Windowsazure SDK 1.5 and respective tools for Visualstudio 2010. But when i run the compute emulator it gives me the following exception: Encountered an unexpected error The given path's format is not supported. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList

Google.Apis.Json.NewtonsoftJsonSerializer throw an exception

点点圈 提交于 2019-12-13 01:03:38
问题 When I run workerRole on Azure, throw me the following exception: An unhandled exception of type 'System.TypeInitializationException' occurred in Google.Apis.Auth.dll Additional information: Se produjo una excepción en el inicializador de tipo de 'Google.Apis.Json.NewtonsoftJsonSerializer'. This is the code that break execution: private static byte[] jsonSecrets = Properties.Resources.client_secrets; using (var stream = new MemoryStream(jsonSecrets, true)) { GoogleWebAuthorizationBroker

Azure worker role getting stuck in Role state Unknown

两盒软妹~` 提交于 2019-12-12 09:43:03
问题 Azure toolkit 1.5 Create New project Add worker role Hit F5 The deployments get stuck in: [fabric] Role Instance: deployment(189).WindowsAzureProject1.WorkerRole1.0 [fabric] Role state Unknown Eventually the deployment times out. Any ideas on how to debug this? 回答1: I personally solved this problem by removing *:808 binding in IIS Manager for Default Website. 回答2: The required Azure assemblies may be missing from the package you are deploying to Azure. Double check that each Azure assembly

Missing cache role behavior of Windows Azure Caching 2.1 in compute emulator

匆匆过客 提交于 2019-12-12 03:42:59
问题 I work on a hosted service which has Windows Azure Cache deployed on instances of the web role. The cache is enabled on production but in the compute emulator we disable it since we often experience slowdowns and exceptions with the cache emulator. In particular, in the compute emulator we do not load the caching module in the csdef and at runtime we detect if cache is enabled by creating the DataCacheFactory and catching the specific exception thrown when the role indicated in the client

Issue Accessing File Storage in Azure WorkerRole using Startup Script

拥有回忆 提交于 2019-12-12 03:28:07
问题 I have an Azure Cloud Service Worker Role which needs a separate Windows Service installed to redirect application tracing to a centralized server. I've placed the installation binaries for this Windows Service in a Storage Account's file storage as shown below. I then have my startup task call a batch file, which in turn executes a power-shell script to retrieve the file and install the service When Azure deploys a new instance of the role, the script execution fails with the following error

Running existing program on Windows AZURE cloud platform

江枫思渺然 提交于 2019-12-11 18:17:17
问题 i have an existing program that i would like to upload to the cloud without rewriting it and i'm wondering if that is possible. For exemple can i upload and run a photoshop instance in the cloud and use it? Of course not the GUI but photoshop has a communication sdk so web program should be able to control it! As far as i can see, Worker roles looks good but they have to be written in a specific way and i can't rewrite photoshop ! Thanks for your attention! 回答1: As long as your existing

Where do I find my non-.NET role's logs when using Remote Desktop?

流过昼夜 提交于 2019-12-11 13:40:10
问题 I'm using a non-.NET worker role, configured by setting the ProgramEntryPoint in the service definition. That means that there is no .NET code in my application, which is written in Java and Python. When I run my worker role locally, I can open the Windows Azure Compute Emulator application and look at the standard output and error of my worker process. When I remote desktop into my Azure instance, I don't know where to get that same information. Where do I find standard output and error? 回答1