+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Deploying to a web cluster environment

Deploying to a web cluster environment

5 posts, 1 answered
  1. Will
    Will avatar
    23 posts
    Registered:
    30 Jun 2009
    30 Nov 2010
    Link to this post
    Hi,
    I've done some research on what needs to be configured differently and this seems very straightforward. I am just looking for someone to confirm we are on the right track for a 3.7 SP3 deployment.

    Is the only necessary change the cacheDependency attribute as described in this KB article?

    Link: http://www.sitefinity.com/devnet/kb/sitefinity-3-x/deploying-sitefinity-in-network-balanced-environment.aspx

    This is for an IIS 7.5 environment with .NET 3.5 SP1.

    Thanks!
    Will
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    30 Nov 2010
    Link to this post
    Hello Will,

    Here is how the web.config should look

    <caching defaultProvider="memoryCache">
        <providers>
            <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework"/>
            <add name="ASPNET" type="Telerik.Caching.AspNetCachingProvider, Telerik.Framework" duration="120" slidingExpiration="true"/>
        </providers>
        <cacheDependency mode="InDatabase" checkExpriredInterval="10"/>
    </caching>

    The section is located under telerik/framework/caching of the web.config file. CacheDependency is used when you make some changes to any object, and then re-request it, the cache will be invalidated and refreshed.  CacheDependency class looks for dependency relationships.

    InDatabase is used generaly in a load balanced environment.
    For cacheDependency you can use only three modes

    - InMemory
    - InDatabase
    - Custom

    When you use Load Balanced environment it is recommended to use InDatabase mode otherwise you may have synchronization problems When cacheDependency mode="InDatabase" the caching triggers will be saved in the database - [sf_DbCacheDependency] table, so they will be available to all servers at any time.
     Generally the table stores data about invalidated and refreshed events when an object is requested.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Will
    Will avatar
    23 posts
    Registered:
    30 Jun 2009
    01 Dec 2010
    Link to this post
    Ivan,
    Thanks for the info, I see how this change fits in the web.config.

    I have one other question: there are certain Sitefinity functions that add/update files on the server. For example, when an admin uploads a new user control or master page, files and directories are created by Sitefinity. In some cases the web.config has nodes added, i.e. for new user controls. Does Sitefinity automatically handle updating the file to each load balanced web server? Or is that sort of file synchronization supposed to be a function of the load balanced environment?

    Thank you!
    Will
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Dec 2010
    Link to this post
    Hi Will,

    Sitefinity does not handle any sync process between two or more servers. This should be handled by the third party software.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Will
    Will avatar
    23 posts
    Registered:
    30 Jun 2009
    01 Dec 2010
    Link to this post
    Thank you for confirming that. I see in the Installation guide it does say that synchronizing images and other files is the responsibility of the load balancing software.

    Thanks!
    Will
Register for webinar
5 posts, 1 answered