Enabling web farms on Azure Web Apps
Azure Web AppsĀ (renamed from Azure Websites, see details) allow you to scale the computing power allocated for your web app on Microsoft Azure. This feature allows you to increase performance and throughput for your web app. See How to scale Web Apps article for details.
For this functionality to work in Kentico, you need to enable and configure the Web farm module in your Kentico web app.
We only support this functionality for web hosting plans with a Basic or higher pricing tier.
After you create an Azure Web App with a Kentico application and deploy it using Visual studio (see Microsoft Azure Web Apps), enable and configure web farms in the Kentico system:
- If you have already scaled your web app to 2 or more instances, scale it back down to 1 instance:
- Open Windows Azure Management Portal and select your web app.
- Switch to the Scale tab.
- Set the Instances count to 1.
- Click Save in the bottom panel.
- Open the Kentico administration interface of your website.
- Open the Settings application and open the Versioning & Synchronization -> Web farm category.
- Make sure that the following check-boxes are selected:
- Enable web farm - enables the web farm functionality.
- Use web farm database updater - enables the database updater web farm synchronization mechanism which uses the database for notifying web farm servers about changes. See Web farm synchronization mechanisms for details.
- Generate servers dynamically - allows the system to generate web farm servers dynamically according to the allocated computing instances.
- Delete generated servers on application end - this settings ensures that the system does not generate more web farm servers than needed.
The system is now prepared for increasing and decreasing computing instances (you can scale your application through the portal on the Scale tab) and will generate web farm servers and synchronization tasks automatically.