Alachisoft NCache 4.1 - Online Documentation

What's stored in a Project?

 
NCache Manager allows you to create a project where you can manage clusters/caches either registered locally or remotely. It can also save all the configuration related information locally in the project file. Project file opens in NCache Manager and loads the same view you saved as a project. Below is a example of project having Clustered Cache, Client Cache, Client Node, Local Cache and a Bridge having a bridge node.
 
 
For the above view of NCache Manager the following Project file is created:
 
<!-- Project file for NCache 4.1 and later versions -->
 
Cluster Section:
 
Cluster tab contains cluster related information which is created in this project and it also include all those clusters which are added in a bridge. This project contains two clusters named as ClusteredCache and MirroredCache (added in a bridge) as shown below:
 
<clusters>
      <cache-config name="ClusteredCache" inproc="False" config-id="0" last-modified="" type="clustered-cache" auto-start="False">
        <log enabled="True" trace-errors="True" trace-notices="False" trace-warnings="False" trace-debug="False"/>
        <perf-counters enabled="True"/>
        <conflict-resolver enabled="False" assembly-name="" class-name="" deserialize="False"/>
        <replication-strategy synchronous="False"/>
        <client-nodes client-cache-id="clientCache3">
          <node client-cache-status="disabled" name="20.200.20.57"/>
        </client-nodes>
        <compression enabled="False" threshold="100kb"/>
        <notifications item-remove="False" item-add="False" item-update="False" cache-clear="False"/>
        <bridge id="BridgeCache" servers="20.200.20.57" port="9900" status="active" is-target-cache="False"/>
        <cleanup interval="15sec"/>
        <storage type="heap" cache-size="250mb"/>
        <eviction-policy enabled="False" default-priority="normal" policy="lru" eviction-ratio="5%"/>
        <cluster topology="partitioned-replicas-server" op-timeout="60sec" stats-repl-interval="600sec" use-heart-beat="False" active-mirror-node="">
          <channel tcp-port="7802" port-range="2" connection-retries="10" connection-retry-interval="2secs" initial-hosts="20.200.20.57[7802]" num-initial-hosts="0"/>
        </cluster>
        <alerts>
          <email-notification email-notification-enabled="False" sender="" smtp-server="" smtp-port="0" ssl="False" authentication="False" sender-login="" sender-password=""/>
          <alerts-types cache-stop="False" cache-start="False" node-left="False" node-joined="False" state-transfer-started="False" state-transfer-stop="False" state-transfer-error="False" cache-size="False"/>
        </alerts>
      </cache-config>
 
      <cache-config name="MirroredCache" inproc="False" config-id="0" last-modified="" type="clustered-cache" auto-start="False">
        <log enabled="True" trace-errors="True" trace-notices="False" trace-warnings="False" trace-debug="False"/>
        <perf-counters enabled="True"/>
        <conflict-resolver enabled="False" assembly-name="" class-name="" deserialize="False"/>
        <compression enabled="False" threshold="100kb"/>
        <notifications item-remove="False" item-add="False" item-update="False" cache-clear="False"/>
        <bridge id="BridgeCache" servers="20.200.20.57" port="9900" status="passive" is-target-cache="True"/>
        <cleanup interval="15sec"/>
        <storage type="heap" cache-size="250mb"/>
        <eviction-policy enabled="False" default-priority="normal" policy="lru" eviction-ratio="5%"/>
        <cluster topology="mirror-server" op-timeout="60sec" stats-repl-interval="600sec" use-heart-beat="False" active-mirror-node="20.200.20.57">
          <channel tcp-port="7811" port-range="1" connection-retries="10" connection-retry-interval="2secs" initial-hosts="20.200.20.57[7811],20.200.20.41[7811]" num-initial-hosts="0"/>
        </cluster>
      </cache-config>
    </clusters>
 
Local Cache Section:
 
Local-Cache tab contains information of two types of caches created in this project that is Client Cache and Local Cache. This project contains only one client cache named as clientCache3 and one local cache named as LocalCache as shown below:
 
<local-caches>
      <node id="20.200.20.57">
 
<!-- Client Cache -->
 
<cache-config name="clientCache3" inproc="False" config-id="0" last-modified="" type="client-cache" auto-start="False">
          <log enabled="True" trace-errors="True" trace-notices="False" trace-warnings="False" trace-debug="False"/>
          <perf-counters enabled="True"/>
          <compression enabled="False" threshold="100kb"/>
          <notifications item-remove="False" item-add="False" item-update="False" cache-clear="False"/>
          <cleanup interval="15sec"/>
          <storage type="heap" cache-size="250mb"/>
          <eviction-policy enabled="True" default-priority="normal" policy="lru" eviction-ratio="5%"/>
        </cache-config>
 
<!-- Local Cache -->
 
<cache-config name="LocalCache" inproc="False" config-id="0" last-modified="" type="local-cache" auto-start="False">
          <log enabled="True" trace-errors="True" trace-notices="False" trace-warnings="False" trace-debug="False"/>
          <perf-counters enabled="True"/>
          <compression enabled="False" threshold="100kb"/>
          <cache-loader retries="0" retry-interval="0" enabled="True">
            <provider provider-name="" assembly-name="" class-name="" full-name="" default-provider="False" async-mode="False"/>
          </cache-loader>
          <notifications item-remove="False" item-add="False" item-update="False" cache-clear="False"/>
          <cleanup interval="15sec"/>
          <storage type="heap" cache-size="250mb"/>
          <eviction-policy enabled="True" default-priority="normal" policy="lru" eviction-ratio="5%"/>
        </cache-config>
      </node>
</local-caches>
 
Bridge Section:
 
Bridge tab contains information related to all bridges created in this project. This project contains only one bridge named as BridgeCache having a bridge-node named as Test, as shown below:
 
<bridges>
      <bridge-config id="BridgeCache" bridge-nodes="20.200.20.57" num-bridge-nodes="1" bridge-active="Test1" bridge-port="10002" opt-timeout="60" src-cache="" topology="active-passive" replicator-virtual-queue-size="10MB">
        <queue optimized="False" size="500"/>
        <perf-counter enabled="True"/>
        
<cache cache-id="ClusteredCache" status="active" servers-list="20.200.20.57,20.200.20.35" remote-replication-interval="100" bulk-operation-size="500" enable-compression="False" connection-retry-interval="3" clear-target-cache="True" heart-beat-enabled="True" replicator-virtual-queue-size="10MB"/>
        
<cache cache-id="MirroredCache" status="passive" servers-list="20.200.20.57,20.200.20.41" remote-replication-interval="100" bulk-operation-size="500" enable-compression="False" connection-retry-interval="3" clear-target-cache="True" heart-beat-enabled="True" replicator-virtual-queue-size="10MB"/>
      
</bridge-config>
    </bridges>
 
Client Node Section:
 
Client-node tab contains information related to all client nodes added to the cluster. Here only one client node is added to a cluster having an id 20.200.20.57 as shown below:
 
    <client-nodes>
      <node id="20.200.20.57" bind-ip="20.200.20.57">
        <configuration>
          <ncache-server connection-retries="5" retry-interval="1" client-request-timeout="90" connection-timeout="5" port="9800"/>
          <cache id="clusteredcache" client-cache-id="clientCache3" client-cache-syncmode="optimistic" default-readthru-provider="" default-writethru-provider="" load-balance="True">
            <server name="20.200.20.57"/>
          </cache>
        </configuration>
      </node>
    </client-nodes>
 
 
See Also

 
Copyright © 2005-2012 Alachisoft. All rights reserved.