|
1 | 1 | <!--
|
2 |
| - ~ Copyright (C) 2005 - 2021 TIBCO Software Inc. All rights reserved. |
| 2 | + ~ Copyright (C) 2005-2023. Cloud Software Group, Inc. All Rights Reserved. |
3 | 3 | ~ http://www.jaspersoft.com.
|
4 | 4 | ~
|
5 | 5 | ~ Unless you have purchased a commercial license agreement from Jaspersoft,
|
|
26 | 26 | <!-- Below are four configurations:
|
27 | 27 | 1. No clustering (default)
|
28 | 28 | 2. RMI distribution with autodiscovery based on multicast
|
29 |
| - - For this to work IP-Multicasting must be enabled on all nodes |
| 29 | + - For this to work IP-Multicasting must be enabled on all nodes |
30 | 30 | 3. JMS distribution based on ActiveMQ JMS server
|
31 | 31 | - Make sure you have correct IP:PORT for each providerURL property
|
32 | 32 | 4. AWS distribution utilizing Amazon SNS/SQS services. Using this option might incurr additional costs as Amazon charges customers per API call.
|
33 | 33 | - note that this is experimental support and that ActiveMQ JMS option also works for AWS and is a preferred method of distribution.
|
34 | 34 |
|
35 | 35 | ********************************************************************************
|
36 |
| -* If you have clustering environment comment or remove default "NO CLUSTERING" * |
| 36 | +* If you have clustering environment comment or remove default "NO CLUSTERING" * |
37 | 37 | * segment and uncomment ONE of the options provided *
|
38 | 38 | * by removing "START" and "END" lines inside the corresponding block *
|
39 | 39 | * (RMI, JMS or AWS) *
|
40 | 40 | ********************************************************************************
|
41 |
| ---> |
42 |
| - <defaultCache |
43 |
| - maxElementsInMemory="10000" |
44 |
| - eternal="false" |
45 |
| - overflowToDisk="false" |
46 |
| - timeToIdleSeconds="3600" |
47 |
| - timeToLiveSeconds="18000" |
48 |
| - diskPersistent="false" |
49 |
| - diskExpiryThreadIntervalSeconds="120"/> |
| 41 | +--> |
| 42 | + <defaultCache |
| 43 | + maxElementsInMemory="10000" |
| 44 | + eternal="false" |
| 45 | + overflowToDisk="false" |
| 46 | + timeToIdleSeconds="3600" |
| 47 | + timeToLiveSeconds="18000" |
| 48 | + diskPersistent="false" |
| 49 | + diskExpiryThreadIntervalSeconds="120"/> |
50 | 50 |
|
51 | 51 | <!-- ******************************************************************** NO CLUSTERING *************************************************** -->
|
52 | 52 | <!-- START
|
|
64 | 64 |
|
65 | 65 | <!-- ******************************************************************** END of NO CLUSTERING ******************************************** -->
|
66 | 66 |
|
| 67 | + <cache name="roles" |
| 68 | + maxElementsInMemory="1000" |
| 69 | + eternal="true" |
| 70 | + overflowToDisk="false" |
| 71 | + diskPersistent="false"/> |
| 72 | + |
| 73 | + <cache name="rolesByTenant" |
| 74 | + maxElementsInMemory="1000" |
| 75 | + eternal="true" |
| 76 | + overflowToDisk="false" |
| 77 | + diskPersistent="false"/> |
| 78 | + |
| 79 | + <cache name="users" |
| 80 | + maxElementsInMemory="10000" |
| 81 | + eternal="true" |
| 82 | + overflowToDisk="false" |
| 83 | + diskPersistent="false"/> |
| 84 | + <cache name="usersByTenant" |
| 85 | + maxElementsInMemory="10000" |
| 86 | + eternal="true" |
| 87 | + overflowToDisk="false" |
| 88 | + diskPersistent="false"/> |
| 89 | + |
| 90 | + <cache name="tenants" |
| 91 | + maxElementsInMemory="1000" |
| 92 | + eternal="true" |
| 93 | + overflowToDisk="false" |
| 94 | + diskPersistent="false"/> |
| 95 | + <cache name="tenantsByName" |
| 96 | + maxElementsInMemory="1000" |
| 97 | + eternal="true" |
| 98 | + overflowToDisk="false" |
| 99 | + diskPersistent="false"/> |
| 100 | + |
| 101 | + <cache name="folders" |
| 102 | + maxElementsInMemory="100000" |
| 103 | + eternal="true" |
| 104 | + overflowToDisk="false" |
| 105 | + diskPersistent="false"/> |
| 106 | + |
| 107 | + <cache name="profileAttributes" |
| 108 | + maxElementsInMemory="100000" |
| 109 | + eternal="true" |
| 110 | + overflowToDisk="false" |
| 111 | + diskPersistent="false"/> |
| 112 | + |
67 | 113 | <!-- ******************************************************************** RMI ********************************************************** -->
|
68 |
| - <!-- START |
69 |
| - <cacheManagerPeerProviderFactory |
70 |
| - class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" |
71 |
| - properties="peerDiscovery=automatic,multicastGroupAddress=228.0.0.1,multicastGroupPort=4446,timeToLive=1"/> |
72 |
| - <cacheManagerPeerListenerFactory |
73 |
| - class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" |
74 |
| - properties="port=40011,remoteObjectPort=40012,socketTimeoutMillis=120000"/> |
75 |
| -
|
76 |
| - <cache name="org.hibernate.cache.internal.StandardQueryCache" |
77 |
| - maxEntriesLocalHeap="5000" |
78 |
| - maxElementsInMemory="5000" |
79 |
| - eternal="false" |
80 |
| - timeToLiveSeconds="120"> |
81 |
| - |
82 |
| - <cacheEventListenerFactory |
| 114 | + <!-- START |
| 115 | + <cacheManagerPeerProviderFactory |
| 116 | + class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" |
| 117 | + properties="peerDiscovery=automatic,multicastGroupAddress=228.0.0.1,multicastGroupPort=4446,timeToLive=1"/> |
| 118 | + <cacheManagerPeerListenerFactory |
| 119 | + class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory" |
| 120 | + properties="port=40011,remoteObjectPort=40012,socketTimeoutMillis=120000"/> |
| 121 | +
|
| 122 | + <cache name="org.hibernate.cache.internal.StandardQueryCache" |
| 123 | + maxEntriesLocalHeap="5000" |
| 124 | + maxElementsInMemory="5000" |
| 125 | + eternal="false" |
| 126 | + timeToLiveSeconds="120"> |
| 127 | +
|
| 128 | + <cacheEventListenerFactory |
83 | 129 | class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
84 | 130 | properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,replicateUpdatesViaCopy=false, replicateRemovals=true "/>
|
85 |
| - <bootstrapCacheLoaderFactory |
86 |
| - class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
87 |
| - properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/> |
| 131 | + <bootstrapCacheLoaderFactory |
| 132 | + class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
| 133 | + properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/> |
88 | 134 |
|
89 |
| - </cache> |
| 135 | + </cache> |
90 | 136 |
|
91 |
| - <cache name="org.hibernate.cache.spi.UpdateTimestampsCache" |
92 |
| - maxEntriesLocalHeap="5000" |
93 |
| - eternal="true"> |
94 |
| - |
95 |
| - <cacheEventListenerFactory |
| 137 | + <cache name="org.hibernate.cache.spi.UpdateTimestampsCache" |
| 138 | + maxEntriesLocalHeap="5000" |
| 139 | + eternal="true"> |
| 140 | +
|
| 141 | + <cacheEventListenerFactory |
96 | 142 | class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
|
97 | 143 | properties="replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,replicateUpdatesViaCopy=true, replicateRemovals=true "/>
|
98 |
| - <bootstrapCacheLoaderFactory |
99 |
| - class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
100 |
| - properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/> |
101 |
| - </cache> |
102 |
| - |
103 |
| - <cache name="defaultRepoCache" |
104 |
| - maxElementsInMemory="10000" |
105 |
| - eternal="false" |
106 |
| - overflowToDisk="false" |
107 |
| - timeToIdleSeconds="36000" |
108 |
| - timeToLiveSeconds="180000" |
109 |
| - diskPersistent="false" |
110 |
| - diskExpiryThreadIntervalSeconds="120" |
111 |
| - statistics="true"> |
112 |
| - |
113 |
| - <cacheEventListenerFactory |
114 |
| - class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
115 |
| - properties="replicateAsynchronously=true, replicatePuts=false, replicateUpdates=true,replicateUpdatesViaCopy=false, replicateRemovals=true "/> |
116 |
| - <bootstrapCacheLoaderFactory |
117 |
| - class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
118 |
| - properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/> |
119 |
| - </cache> |
| 144 | + <bootstrapCacheLoaderFactory |
| 145 | + class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
| 146 | + properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/> |
| 147 | + </cache> |
| 148 | +
|
| 149 | + <cache name="defaultRepoCache" |
| 150 | + maxElementsInMemory="10000" |
| 151 | + eternal="false" |
| 152 | + overflowToDisk="false" |
| 153 | + timeToIdleSeconds="36000" |
| 154 | + timeToLiveSeconds="180000" |
| 155 | + diskPersistent="false" |
| 156 | + diskExpiryThreadIntervalSeconds="120" |
| 157 | + statistics="true"> |
| 158 | +
|
| 159 | + <cacheEventListenerFactory |
| 160 | + class="net.sf.ehcache.distribution.RMICacheReplicatorFactory" |
| 161 | + properties="replicateAsynchronously=true, replicatePuts=false, replicateUpdates=true,replicateUpdatesViaCopy=false, replicateRemovals=true "/> |
| 162 | + <bootstrapCacheLoaderFactory |
| 163 | + class="net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory" |
| 164 | + properties="bootstrapAsynchronously=true, maximumChunkSizeBytes=5000000"/> |
| 165 | + </cache> |
120 | 166 |
|
121 | 167 | END -->
|
122 |
| -<!-- ******************************************** END of RMI ************************************************ --> |
| 168 | +<!-- ******************************************** END of RMI ************************************************ --> |
123 | 169 |
|
124 | 170 | <!-- *************************************************** JMS ************************************************ -->
|
125 | 171 | <cacheManagerPeerProviderFactory
|
|
190 | 236 |
|
191 | 237 | </cache>
|
192 | 238 |
|
193 |
| - <cache name="defaultRepoCache" |
194 |
| - maxElementsInMemory="10000" |
195 |
| - eternal="false" |
196 |
| - overflowToDisk="false" |
197 |
| - timeToIdleSeconds="36000" |
198 |
| - timeToLiveSeconds="180000" |
199 |
| - diskPersistent="false" |
200 |
| - diskExpiryThreadIntervalSeconds="120" |
201 |
| - statistics="true"> |
202 |
| - |
| 239 | + <cache name="defaultRepoCache" |
| 240 | + maxElementsInMemory="10000" |
| 241 | + eternal="false" |
| 242 | + overflowToDisk="false" |
| 243 | + timeToIdleSeconds="36000" |
| 244 | + timeToLiveSeconds="180000" |
| 245 | + diskPersistent="false" |
| 246 | + diskExpiryThreadIntervalSeconds="120" |
| 247 | + statistics="true"> |
| 248 | + |
203 | 249 | <cacheEventListenerFactory
|
204 | 250 | class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
205 | 251 | properties="replicateAsynchronously=true,
|
|
221 | 267 | topicBindingName=ehcache,providerURL=${jasperserver.cache.jms.provider}"
|
222 | 268 | propertySeparator=","/>
|
223 | 269 |
|
224 |
| - </cache> |
| 270 | + </cache> |
225 | 271 |
|
226 | 272 | <!-- ***************************************************** END of JMS **************************************************************************** -->
|
227 | 273 |
|
228 | 274 | <!-- ********************************************************** AWS **************************************************************************** -->
|
229 |
| - <!-- START |
| 275 | + <!-- START |
230 | 276 | <cacheManagerPeerProviderFactory
|
231 | 277 | class="com.jaspersoft.jasperserver.api.engine.replication.JRSNevadoCacheManagerPeerProviderFactory"
|
232 | 278 | properties=""
|
233 | 279 | propertySeparator="," />
|
234 |
| - |
| 280 | +
|
235 | 281 | <cache name="org.hibernate.cache.internal.StandardQueryCache"
|
236 | 282 | maxEntriesLocalHeap="5000"
|
237 | 283 | maxElementsInMemory="5000"
|
|
257 | 303 | class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
258 | 304 | properties="replicateAsynchronously=true,
|
259 | 305 | replicatePuts=true,
|
260 |
| - replicatePutsViaCopy=true, |
| 306 | + replicatePutsViaCopy=true, |
261 | 307 | replicateUpdates=false,
|
262 | 308 | replicateUpdatesViaCopy=false,
|
263 | 309 | replicateRemovals=true,
|
264 | 310 | asynchronousReplicationIntervalMillis=100"
|
265 | 311 | propertySeparator=","/>
|
266 | 312 | </cache>
|
267 |
| - |
268 |
| - <cache name="defaultRepoCache" |
269 |
| - maxElementsInMemory="10000" |
270 |
| - eternal="false" |
271 |
| - overflowToDisk="false" |
272 |
| - timeToIdleSeconds="36000" |
273 |
| - timeToLiveSeconds="180000" |
274 |
| - diskPersistent="false" |
275 |
| - diskExpiryThreadIntervalSeconds="120" |
276 |
| - statistics="true"> |
277 |
| - |
| 313 | +
|
| 314 | + <cache name="defaultRepoCache" |
| 315 | + maxElementsInMemory="10000" |
| 316 | + eternal="false" |
| 317 | + overflowToDisk="false" |
| 318 | + timeToIdleSeconds="36000" |
| 319 | + timeToLiveSeconds="180000" |
| 320 | + diskPersistent="false" |
| 321 | + diskExpiryThreadIntervalSeconds="120" |
| 322 | + statistics="true"> |
| 323 | +
|
278 | 324 | <cacheEventListenerFactory
|
279 | 325 | class="net.sf.ehcache.distribution.jms.JMSCacheReplicatorFactory"
|
280 | 326 | properties="replicateAsynchronously=true,
|
|
284 | 330 | replicateRemovals=true,
|
285 | 331 | asynchronousReplicationIntervalMillis=1000"
|
286 | 332 | propertySeparator=","/>
|
287 |
| - </cache> |
| 333 | + </cache> |
288 | 334 |
|
289 | 335 | END -->
|
290 | 336 | <!-- ***************************************************** END of AWS ***************************************************************************** -->
|
291 | 337 |
|
292 | 338 | </ehcache>
|
293 |
| - |
|
0 commit comments