hazelcastConfig.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-basic.xsd"
  3. xmlns="http://www.hazelcast.com/schema/config"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <group>
  6. <name>dev</name>
  7. <password>dev-pass</password>
  8. </group>
  9. <network>
  10. <port auto-increment="true">5701</port>
  11. <join>
  12. <multicast enabled="true">
  13. <multicast-group>224.2.2.3</multicast-group>
  14. <multicast-port>54327</multicast-port>
  15. </multicast>
  16. <tcp-ip enabled="false">
  17. <interface>127.0.0.1</interface>
  18. </tcp-ip>
  19. </join>
  20. <interfaces enabled="true">
  21. <interface>192.168.1.*</interface>
  22. </interfaces>
  23. <symmetric-encryption enabled="false">
  24. <!--
  25. encryption algorithm such as
  26. DES/ECB/PKCS5Padding,
  27. PBEWithMD5AndDES,
  28. AES/CBC/PKCS5Padding,
  29. Blowfish,
  30. DESede
  31. -->
  32. <algorithm>PBEWithMD5AndDES</algorithm>
  33. <!-- salt value to use when generating the secret key -->
  34. <salt>thesalt</salt>
  35. <!-- pass phrase to use when generating the secret key -->
  36. <password>thepass</password>
  37. <!-- iteration count to use when generating the secret key -->
  38. <iteration-count>19</iteration-count>
  39. </symmetric-encryption>
  40. <asymmetric-encryption enabled="false">
  41. <!-- encryption algorithm -->
  42. <algorithm>RSA/NONE/PKCS1PADDING</algorithm>
  43. <!-- private key password -->
  44. <keyPassword>thekeypass</keyPassword>
  45. <!-- private key alias -->
  46. <keyAlias>local</keyAlias>
  47. <!-- key store type -->
  48. <storeType>JKS</storeType>
  49. <!-- key store password -->
  50. <storePassword>thestorepass</storePassword>
  51. <!-- path to the key store -->
  52. <storePath>keystore</storePath>
  53. </asymmetric-encryption>
  54. </network>
  55. <executor-service>
  56. <core-pool-size>16</core-pool-size>
  57. <max-pool-size>64</max-pool-size>
  58. <keep-alive-seconds>60</keep-alive-seconds>
  59. </executor-service>
  60. <queue name="default">
  61. <!--
  62. Maximum size of the queue. When a JVM's local queue size reaches the maximum,
  63. all put/offer operations will get blocked until the queue size
  64. of the JVM goes down below the maximum.
  65. Any integer between 0 and Integer.MAX_VALUE. 0 means
  66. Integer.MAX_VALUE. Default is 0.
  67. -->
  68. <max-size-per-jvm>0</max-size-per-jvm>
  69. <!--
  70. Maximum number of seconds for each item to stay in the queue. Items that are
  71. not consumed in <time-to-live-seconds> will automatically
  72. get evicted from the queue.
  73. Any integer between 0 and Integer.MAX_VALUE. 0 means
  74. infinite. Default is 0.
  75. -->
  76. <time-to-live-seconds>0</time-to-live-seconds>
  77. </queue>
  78. <map name="default">
  79. <!--
  80. Number of backups. If 1 is set as the backup-count for example,
  81. then all entries of the map will be copied to another JVM for
  82. fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
  83. -->
  84. <backup-count>1</backup-count>
  85. <!--
  86. Valid values are:
  87. NONE (no eviction),
  88. LRU (Least Recently Used),
  89. LFU (Least Frequently Used).
  90. NONE is the default.
  91. -->
  92. <eviction-policy>NONE</eviction-policy>
  93. <!--
  94. Maximum size of the map. When max size is reached,
  95. map is evicted based on the policy defined.
  96. Any integer between 0 and Integer.MAX_VALUE. 0 means
  97. Integer.MAX_VALUE. Default is 0.
  98. -->
  99. <max-size>0</max-size>
  100. <!--
  101. When max. size is reached, specified percentage of
  102. the map will be evicted. Any integer between 0 and 100.
  103. If 25 is set for example, 25% of the entries will
  104. get evicted.
  105. -->
  106. <eviction-percentage>25</eviction-percentage>
  107. <!--
  108. While recovering from split-brain (network partitioning),
  109. map entries in the small cluster will merge into the bigger cluster
  110. based on the policy set here. When an entry merge into the
  111. cluster, there might an existing entry with the same key already.
  112. Values of these entries might be different for that same key.
  113. Which value should be set for the key? Conflict is resolved by
  114. the policy set here. Default policy is hz.ADD_NEW_ENTRY
  115. There are built-in merge policies such as
  116. hz.NO_MERGE ; no entry will merge.
  117. hz.ADD_NEW_ENTRY ; entry will be added if the merging entry's key
  118. doesn't exist in the cluster.
  119. hz.HIGHER_HITS ; entry with the higher hits wins.
  120. hz.LATEST_UPDATE ; entry with the latest update wins.
  121. -->
  122. <merge-policy>hz.ADD_NEW_ENTRY</merge-policy>
  123. </map>
  124. <!-- Add your own map merge policy implementations here:
  125. <merge-policies>
  126. <map-merge-policy name="MY_MERGE_POLICY">
  127. <class-name>com.acme.MyOwnMergePolicy</class-name>
  128. </map-merge-policy>
  129. </merge-policies>
  130. -->
  131. <map name="AlfrescoFilesysCache">
  132. <!--
  133. Number of backups. If 1 is set as the backup-count for example,
  134. then all entries of the map will be copied to another JVM for
  135. fail-safety. Valid numbers are 0 (no backup), 1, 2, 3.
  136. -->
  137. <backup-count>1</backup-count>
  138. <!--
  139. Valid values are:
  140. NONE (no eviction),
  141. LRU (Least Recently Used),
  142. LFU (Least Frequently Used).
  143. NONE is the default.
  144. -->
  145. <eviction-policy>NONE</eviction-policy>
  146. <!--
  147. Maximum size of the map. When max size is reached,
  148. map is evicted based on the policy defined.
  149. Any integer between 0 and Integer.MAX_VALUE. 0 means
  150. Integer.MAX_VALUE. Default is 0.
  151. -->
  152. <max-size>0</max-size>
  153. <!--
  154. When max. size is reached, specified percentage of
  155. the map will be evicted. Any integer between 0 and 100.
  156. If 25 is set for example, 25% of the entries will
  157. get evicted.
  158. -->
  159. <eviction-percentage>25</eviction-percentage>
  160. <!--
  161. While recovering from split-brain (network partitioning),
  162. map entries in the small cluster will merge into the bigger cluster
  163. based on the policy set here. When an entry merge into the
  164. cluster, there might an existing entry with the same key already.
  165. Values of these entries might be different for that same key.
  166. Which value should be set for the key? Conflict is resolved by
  167. the policy set here. Default policy is hz.ADD_NEW_ENTRY
  168. There are built-in merge policies such as
  169. hz.NO_MERGE ; no entry will merge.
  170. hz.ADD_NEW_ENTRY ; entry will be added if the merging entry's key
  171. doesn't exist in the cluster.
  172. hz.HIGHER_HITS ; entry with the higher hits wins.
  173. hz.LATEST_UPDATE ; entry with the latest update wins.
  174. -->
  175. <merge-policy>hz.ADD_NEW_ENTRY</merge-policy>
  176. <!--
  177. <near-cache>
  178. <time-to-live-seconds>5</time-to-live-seconds>
  179. <max-idle-seconds>60</max-idle-seconds>
  180. <eviction-policy>LRU</eviction-policy>
  181. <max-size>1000</max-size>
  182. <invalidate-on-change>true</invalidate-on-change>
  183. </near-cache>
  184. -->
  185. </map>
  186. </hazelcast>