In order to launch a csp tracker you would need to use <cache-handler class="com.bowman.cardserv.ClusteredCache"> in your config instead of cache-handler class="com.bowman.cardserv.DefaultCache">,
steps:
1. cache-handler class="com.bowman.cardserv.ClusteredCache"> at you config,
2. you would also need to specify port to be used as csp cache port, this is the port where you receive cache from remote cache peers. <local-port>xxxx</local-port>, this is xxxx port must be pass through firewall or IPtables.
3. <tracker-url>file:///usr/local/csp/config/cluster</tracker-url> this is simply url for your tracker file which holding all peers host_port starting by your own csp host_port for cache purposes. in exactly this format eq. 192.168.1.55:61000
4. Complete example is as follow:
its very important to understand that peers in your cluster file will received you local generated cache, in order to receive cache from peers they would have to include you in their cluster file,
<cache-handler class="com.bowman.cardserv.ClusteredCache">
<cache-config>
<cw-max-age>19</cw-max-age>
<max-cache-wait>40%</max-cache-wait>
<local-host>your_cache_host</local-host>
<local-port>cache_port</local-port>
<tracker-url>file:///usr/local/csp/config/cluster</tracker-url>
<tracker-key></tracker-key>
<tracker-update>30</tracker-update>
<sync-period>60</sync-period>
<debug>false</debug>
<cw-validation checksum="false" zero-counting="true" log-warnings="true" require-id="false"/>
<hide-names/>
</cache-config>
</cache-handler>
steps:
1. cache-handler class="com.bowman.cardserv.ClusteredCache"> at you config,
2. you would also need to specify port to be used as csp cache port, this is the port where you receive cache from remote cache peers. <local-port>xxxx</local-port>, this is xxxx port must be pass through firewall or IPtables.
3. <tracker-url>file:///usr/local/csp/config/cluster</tracker-url> this is simply url for your tracker file which holding all peers host_port starting by your own csp host_port for cache purposes. in exactly this format eq. 192.168.1.55:61000
4. Complete example is as follow:
its very important to understand that peers in your cluster file will received you local generated cache, in order to receive cache from peers they would have to include you in their cluster file,
<cache-handler class="com.bowman.cardserv.ClusteredCache">
<cache-config>
<cw-max-age>19</cw-max-age>
<max-cache-wait>40%</max-cache-wait>
<local-host>your_cache_host</local-host>
<local-port>cache_port</local-port>
<tracker-url>file:///usr/local/csp/config/cluster</tracker-url>
<tracker-key></tracker-key>
<tracker-update>30</tracker-update>
<sync-period>60</sync-period>
<debug>false</debug>
<cw-validation checksum="false" zero-counting="true" log-warnings="true" require-id="false"/>
<hide-names/>
</cache-config>
</cache-handler>