azure-web-roles

Azure Web Role “warm up” strategies [closed]

爷,独闯天下 提交于 2019-12-02 15:38:54
I found that making requests to our web role after periods on inactivity would result in a very slow request (up to 30 seconds). After that initial request, the role would perform as it should. After much Googling, I came across four different strategies (listed below): (a) Disabling IIS idle timeout in RoleEntryPoint.OnStart() public override bool OnStart() { using (var server = new ServerManager()) { server.ApplicationPoolDefaults.ProcessModel.IdleTimeout = TimeSpan.Zero; server.CommitChanges(); } return base.OnStart(); } This also requires that the role runs at an elevated level. (b)

Why is Azure not dispatching HTTP requests on one of my two instances?

怎甘沉沦 提交于 2019-12-02 15:13:04
问题 I have an Azure web role with two instances. Both instances are "ready" - running okay. On my desktop I have four instances of the same program running simultaneously and hitting the web role URL with HTTP requests. Yet according to the logs all requests are dispatched to instance 0 only. I need requests to be dispatched to both instances to test concurrent operation. Why are requests not dispatched to the second instance and how do I make them dispatched there? 回答1: This is likely from the

How can I test multiple Web Role instances in Windows Azure?

大兔子大兔子 提交于 2019-12-02 09:56:56
Background: I've deployed an MVC3 application to 2 Azure Web Role instances, but I'm confused as to how I can test out the possibility of one of these instances failing. Is there a way that I can test to ensure that my Web Role code works seamlessly when one of my instances is taken offline? Can I manually stop one of them? Or somehow configure the load balancer to force all traffic to one of the servers? Thanks! If you have RDP access enabled to your instances you can very easily remove one or more instance out from LoadBalancer even when the instance is running healthy without writing any

Azure DataCache Problems with Windows Azure Emulator but no error generated. Application just hangs

梦想的初衷 提交于 2019-12-02 08:36:55
问题 I have an existing mvc4 web project which I wanted to deploy to a cloud service and to start using the azure data caching. I have added the windows azure caching nuget packages to two projects in the solution, the web project and a class library project both of which will need these. I then add a web role for the web project, and I have updated the datacache identifier reference in the web.config to point to the web role which is enabled for co located caching. I can run this locally on the

How to implement Lucene .Net search on Azure webrole

送分小仙女□ 提交于 2019-12-02 08:33:54
问题 I'm using AzureDirectory and Lucene .NET 2.9.4 but I have wo problems: searcher doesn't seems to be so fast. I'm indexing with these settings: indexWriter.SetUseCompoundFile(false); indexWriter.SetMergeFactor(1000); index is around 3.5gb and it has 12.126.436 docs. To create the indexSearcher it takes around 5 min or more even if index is already on local disk. Is the index too big? I tried to perform a single term search using MultiFieldQueryParser on two fields. TermVector on fields is off

How to implement Lucene .Net search on Azure webrole

半世苍凉 提交于 2019-12-02 04:12:26
I'm using AzureDirectory and Lucene .NET 2.9.4 but I have wo problems: searcher doesn't seems to be so fast. I'm indexing with these settings: indexWriter.SetUseCompoundFile(false); indexWriter.SetMergeFactor(1000); index is around 3.5gb and it has 12.126.436 docs. To create the indexSearcher it takes around 5 min or more even if index is already on local disk. Is the index too big? I tried to perform a single term search using MultiFieldQueryParser on two fields. TermVector on fields is off Everywhere is suggested to create only an instance of indexSearcher and share it between queries (in

Struggling to move Web Role to a smaller vmsize

試著忘記壹切 提交于 2019-12-02 02:14:03
问题 I want to move my web role to a smaller VM size for cost saving purposes. I changed the vmsize attribute in WebRole in the ServiceDefinition.csdef accordingly. On publishing I received the following error: Total requested resources are too large for the specified VM size So I then reduced the size of the local storage resources in the ServiceDefinition.csdef . Then I got the error while publishing: The size of local resources cannot be reduced. Affected local resource is DataFiles in role

Struggling to move Web Role to a smaller vmsize

旧巷老猫 提交于 2019-12-02 01:32:44
I want to move my web role to a smaller VM size for cost saving purposes. I changed the vmsize attribute in WebRole in the ServiceDefinition.csdef accordingly. On publishing I received the following error: Total requested resources are too large for the specified VM size So I then reduced the size of the local storage resources in the ServiceDefinition.csdef . Then I got the error while publishing: The size of local resources cannot be reduced. Affected local resource is DataFiles in role Website. From what I have read online, I will need to delete the deployment and republish it . But this

How to update an Azure Cloud Service setting using Azure Powershell

拥有回忆 提交于 2019-12-01 21:49:55
Is it possible to update the value of a setting in an Azure Cloud Service with Azure Powershell? So far there is no way to update just a single setting (the Service Management API does not allow it - it only accepts the whole service configuration). So, in order to update a single setting, you will have to update the entire configuration. And you can do this with PowerShell: # Add the Azure Account first - this will create a login promppt Add-AzureAccount # when you have more then one subscription - you have explicitly select the one # which holds your cloud service you want to update Select

azure table : Duplicate partition key results in (409) conflict

大憨熊 提交于 2019-12-01 19:43:13
I am trying to insert multiple rows into the Azure table service. As far as this article goes, I have understood the partition key to be able to store duplicates. However, while following this article , when I try to insert a duplicate partition key I get an error: The remote server returned an error: (409) Conflict. What could be wrong in my code? I am following it as per the second article; Or is my understanding incorrect? Also, the first article says that the row key is supposed to act as primary key. The second article says I can hardcode it for the example. This has me confused as to