Enabling web farms on Windows Azure Web Sites

Windows Azure Web Sites allow you to scale the computing power allocated for your web sites on Microsoft Azure. This feature allows you to increase performance and throughput for your websites. See How to scale Websites article for details.

For this functionality to work in Kentico, you need to enable and configure the Web farm module in your Kentico web site.

We support this functionality only for Basic and Standard web hosting plans.

After you create an Azure Web Site with a Kentico application (see Microsoft Azure Web Sites), enable and configure web farms in the Kentico system:

  1. If you have already scaled your website to 2 or more instances, scale it back down to 1 instance:
    1. Open Windows Azure Management Portal and select your website.
    2. Switch to the Scale tab.
    3. Set the Instances count to 1.
    4. Click Save in the bottom panel.
  2. Open the Kentico administration interface of your website.
  3. Open the Settings application and open the Versioning & Synchronization -> Web farm category.
  4. 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.