icon Load Balancing
Created by Orckestra

Load Balancing Setup Guide

Configuration

By default the Load Balancing add-on will run in “shared” mode, which enables any node in the cluster to accept changes and alert other nodes about changed data. This works right out of the box and requires no maintenance or additional configuration.

You can change the mode to “server” or “client” and specify a connection string for the Load Balancing tables other than used by the C1 CMS website by default.

If you edit ~/web.config you will find the following settings in the <appSettings />:

<appSettings>
  <add key="Composite.LoadBalancing.Mode" value="shared" />
  <add key="Composite.LoadBalancing.ConnectionStringName" value="c1" />
</appSettings>

Listing 1: Load Balancing settings in web.config

Valid values for Composite.LoadBalancing.Mode are listed below.

  • “server”
    The Load Balancing add-on will record and push changes made on the current node. It will not listen for changes made by other nodes.
  • “client”
    The add-on will listen for changes pushed by nodes running in “server” mode and will invalidate affected caches when notified.
  • “shared”
    This is the default setting. The combined mode where the node will both record and push changes and will listen for the changes pushed by other nodes.
  
Back to top
Part of subscriptions:

Have a question?

Phone: +45 39 15 76 00
Email: Write us
1:13 AM
(Local time at HQ)