Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Azure Web Roles - Web Farm View modes: 
User avatar
Member
Member
EWiley - 9/7/2013 9:46:00 AM
   
Azure Web Roles - Web Farm
We have two web roles which communicate with a single database.

In Site Manager --> Web Farms, we see a huge number of web farm entries, one for each deployment that we've had.

1. Is this correct?
2. If no, what can we do to correct this?

User image

User avatar
Kentico Support
Kentico Support
kentico_filipl - 9/9/2013 3:43:37 AM
   
RE:Azure Web Roles - Web Farm
Hello,

It certainly is weird, there should not be such a huge amount of logs of the same web role.

Could you check if there is really only one instance of each web role running in your cloud service on Azure? You can check it in your Azure portal -> <your cloud service> -> Instances. Haven't you noticed when exactly are those multiple web roles being created? Could it be during a restart of the web role for whatever reason?

Best regards,
Filip Ligac

User avatar
Member
Member
EWiley - 9/9/2013 7:34:16 AM
   
RE:Azure Web Roles - Web Farm
Hi Filip- thanks for your response.
I can guarantee that the number of instances is correct in the Azure portal.

I wonder, does this behavior happen because I am missing this entry in the web.config?
<Role name="CMSApp">
<Instances count="2" />
<ConfigurationSettings>
...
</ConfigurationSettings>
</Role>

Meaning... without that limit specifically set in the web.config, will the web farm module in Kentico continue to add new instances every time there is a deployment?

User avatar
Kentico Support
Kentico Support
kentico_filipl - 9/10/2013 1:17:01 AM
   
RE:Azure Web Roles - Web Farm
Hello Eric,

So I found out that this behaviour is caused by the fact that you run your project in Azure emulator. Running it in there creates multiple instances of those "deployment(xx).CMSAzure..." servers and they are not removed after you stop the emulator, they need to be removed manually. However, such a behaviour only occurs in emulator, these instances are removed automatically in live environment so there is no need for any special actions to get this done.

Best regards,
Filip Ligac