• According our Forum Rules,

    • only English Language is allowed
    • asking other members for Likes is forbidden
    • First of all introduce yourselft to earn free likes from moderators
    • links to server IPs, other forums, website or shops, phishing or malware websites etc. are forbidden

    Please Make a small Donation : GET VIP ACCOUNT
    Discord Room

    Members who do not follow this rule will be banned !

CSP Cluster Cache HOWTO

snake

New member
Member
Joined
Oct 15, 2019
Messages
15
Reaction score
37
Points
3
Location
PT
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>
 
  • Like
Reactions: TCM
Top