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

Forums / Deployment / Deploying to a Web Farm

Deploying to a Web Farm

9 posts, 0 answered
  1. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    21 Jan 2008
    Link to this post
    We're looking forward to deploying our Sitefinity application on a web farm soon and I see very little in the documentation about web farms.  Wondering about issues such as synchronizing uploaded files between the web servers, etc.  What, if anything, needs to be done to configure this functionality?

    Thanks,

    Zack
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    22 Jan 2008
    Link to this post
    Hello Zack,

    Sitefinity supports web farms. The only requirement for load balanced environment is to change the cache dependency mode in the application web.config from InMemory to InDatabase:

    <telerik> 
      <dataAccess> 
         <cacheDependency mode="InDatabase"
    ... 

    Synchronizing images and other files between servers in the web farm is the responsibility of your load balancing software.

    Hope this is helpful for you.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Zack
    Zack avatar
    41 posts
    Registered:
    18 Apr 2007
    22 Jan 2008
    Link to this post
    Your product Roadmap seems to mention that a feature is being added to version 4.0 that will handle file synchronization for us automatically.  Can you confirm that I'm understanding that correctly?

    Thanks,

    Zack
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    23 Jan 2008
    Link to this post
    Hello Zack,

    I think there is some misunderstanding. "Site synchronization service" feature that is planned for v4.0 is not related to the web farm support. This service will provide synchronization between the development and the production server.

    As I have already mentioned in my previous post, your load balancing software is responsible for the synchronization between servers in the web farm.


    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Diana
    Diana avatar
    16 posts
    Registered:
    26 Nov 2008
    25 Feb 2009
    Link to this post
    Hi
    I'm using Sitefinity 3.5 and have found the cacheDependency tag in a different place in the web.config file:
      <telerik> 
        <dataAccess defaultConnection="DefaultConnection">  
          <connections> 
            <add name="DefaultConnection" driver="Nolics.ORMapper.DataProviders.SqlServer2005Provider" 
              connectionStringName="Sitefinity" /> 
            <add name="GenericContentConnection" driver="Telerik.Cms.Engine.Data.Providers.GCSql2005Provider, Telerik.Cms.Engine.Data" 
              connectionStringName="Sitefinity" /> 
          </connections> 
        </dataAccess> 
        <framework> 
          <caching defaultProvider="memoryCache">  
            <providers> 
              <add name="memoryCache" type="Telerik.Caching.MemoryCachingProvider, Telerik.Framework" /> 
            </providers> 
            <cacheDependency mode="InDatabase" /> 
          </caching> 

    Did I change it in the right place, or should I add a cacheDependency to the dataAccess element?
    Thanks for your help,
    Diana
  6. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    26 Feb 2009
    Link to this post
    Hello Diana,

    Yes, in the Sitefinity 3.5 and higher versions, this is the right place to put the cache dependency mode - telerik/framework/caching.

    Greetings,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. V M Ranero
    V M Ranero avatar
    1 posts
    Registered:
    04 Aug 2009
    20 Nov 2009
    Link to this post
    We've already deployed our site into production, however we're having a weird issue in that the Staging box source code and the database schema and content are identical, yet there is a difference in how our Blog module is being rendered. Our Production box has the long list of all the posts while the Staging box has the Summary working just fine. We're trying to get the Summaries working in Production.

    We have a load balanced enviornment so I've set the cacheDependency to "InDatabase" but I can only find it in the web.config file. In an environment where the site is already deployed, I cannot find a /telerik/framework... directory and thus cannot set the cacheDependency there. We're on the latest version...I believe it is 3.7.

    Any suggestions?

    Thanks,
    Matt
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 Nov 2009
    Link to this post
    Hi V M Ranero,

    Check caching node in your web.config.

    <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>

    Also make sure that both websites are using the same version and do not make database upgrade/downgrade.
    Try to synchronize the servers and update all items.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. addy
    addy avatar
    1 posts
    Registered:
    06 Oct 2010
    06 Oct 2010
    Link to this post
    It depends. If your site is complex, its more than likely that you have lot of custom objects that are being stored in the Session. If thats true then you would have to go back and modify those classes and identify them as Serializable to make the transition from InProc to SQL Server session mode. In other words, if its a simple site, you may not have any issue with shifting to SQL Server session
Register for webinar
9 posts, 0 answered