IDEMPIERE-3798 - sync hazelcast with latest in 6.1

This commit is contained in:
Carlos Ruiz 2018-12-27 17:12:08 +01:00
parent 8b73a1b743
commit 1839fa4a1f
2 changed files with 30 additions and 8 deletions

View File

@ -159,7 +159,7 @@
then all entries of the map will be copied to another JVM for then all entries of the map will be copied to another JVM for
fail-safety. 0 means no backup. fail-safety. 0 means no backup.
--> -->
<backup-count>0</backup-count> <backup-count>1</backup-count>
<!-- <!--
Number of async backups. 0 means no backup. Number of async backups. 0 means no backup.
@ -185,7 +185,7 @@
then all entries of the map will be copied to another JVM for then all entries of the map will be copied to another JVM for
fail-safety. 0 means no backup. fail-safety. 0 means no backup.
--> -->
<backup-count>1</backup-count> <backup-count>0</backup-count>
<!-- <!--
Number of async backups. 0 means no backup. Number of async backups. 0 means no backup.
--> -->

View File

@ -36,6 +36,10 @@
<password>dev-pass</password> <password>dev-pass</password>
</group> </group>
<management-center enabled="false">http://localhost:8080/hazelcast-mancenter</management-center> <management-center enabled="false">http://localhost:8080/hazelcast-mancenter</management-center>
<!-- https://docs.hazelcast.org/docs/3.11/manual/html-single/index.html#time-window-for-split-brain-protection -->
<properties>
<property name="hazelcast.discovery.enabled">false</property>
</properties>
<network> <network>
<port auto-increment="true" port-count="100">5701</port> <port auto-increment="true" port-count="100">5701</port>
<outbound-ports> <outbound-ports>
@ -46,7 +50,7 @@
<ports>0</ports> <ports>0</ports>
</outbound-ports> </outbound-ports>
<join> <join>
<multicast enabled="true"> <multicast enabled="false">
<multicast-group>224.2.2.3</multicast-group> <multicast-group>224.2.2.3</multicast-group>
<multicast-port>54327</multicast-port> <multicast-port>54327</multicast-port>
</multicast> </multicast>
@ -90,6 +94,20 @@
<namespace>hazelcast</namespace> <namespace>hazelcast</namespace>
</eureka> </eureka>
<discovery-strategies> <discovery-strategies>
<discovery-strategy enabled="false" class="com.hazelcast.aws.AwsDiscoveryStrategy">
<properties>
<property name="access-key">my-access-key</property>
<property name="secret-key">my-secret-key</property>
<!--optional, default is us-east-1 -->
<property name="region">us-east-1</property>
<property name="host-header">ec2.amazonaws.com</property>
<!-- optional, only instances belonging to this group will be discovered, default will try all running instances -->
<property name="security-group-name">hazelcast-sg</property>
<property name="tag-key">type</property>
<property name="tag-value">hz-nodes</property>
<property name="connection-timeout-seconds">30</property>
</properties>
</discovery-strategy>
</discovery-strategies> </discovery-strategies>
</join> </join>
<interfaces enabled="false"> <interfaces enabled="false">
@ -167,7 +185,7 @@
then all entries of the map will be copied to another JVM for then all entries of the map will be copied to another JVM for
fail-safety. 0 means no backup. fail-safety. 0 means no backup.
--> -->
<backup-count>1</backup-count> <backup-count>0</backup-count>
<!-- <!--
Number of async backups. 0 means no backup. Number of async backups. 0 means no backup.
--> -->
@ -185,7 +203,7 @@
automatically evicted from the map. Entry is touched if get, put or containsKey is called. automatically evicted from the map. Entry is touched if get, put or containsKey is called.
Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0. Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
--> -->
<max-idle-seconds>0</max-idle-seconds> <max-idle-seconds>1800</max-idle-seconds>
<!-- <!--
Valid values are: Valid values are:
NONE (no eviction), NONE (no eviction),
@ -193,14 +211,14 @@
LFU (Least Frequently Used). LFU (Least Frequently Used).
NONE is the default. NONE is the default.
--> -->
<eviction-policy>NONE</eviction-policy> <eviction-policy>LRU</eviction-policy>
<!-- <!--
Maximum size of the map. When max size is reached, Maximum size of the map. When max size is reached,
map is evicted based on the policy defined. map is evicted based on the policy defined.
Any integer between 0 and Integer.MAX_VALUE. 0 means Any integer between 0 and Integer.MAX_VALUE. 0 means
Integer.MAX_VALUE. Default is 0. Integer.MAX_VALUE. Default is 0.
--> -->
<max-size policy="PER_NODE">0</max-size> <max-size policy="PER_NODE">1000</max-size>
<!-- <!--
`eviction-percentage` property is deprecated and will be ignored when it is set. `eviction-percentage` property is deprecated and will be ignored when it is set.
@ -241,6 +259,10 @@
--> -->
<cache-deserialized-values>INDEX-ONLY</cache-deserialized-values> <cache-deserialized-values>INDEX-ONLY</cache-deserialized-values>
<near-cache name="localNearCache">
<in-memory-format>OBJECT</in-memory-format>
<cache-local-entries>true</cache-local-entries>
</near-cache>
</map> </map>
<!-- <!--