From 81066b14984cf3176a12a351657b52c37e16bc52 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 13 Mar 2018 16:32:34 -0300 Subject: [PATCH] IDEMPIERE-3653 Hazelcast improvements / fix template version - add example of new recommended aws discovery strategy --- .../hazelcast-template.xml | 103 ++++++++++++------ .../hazelcast.xml | 27 +++-- 2 files changed, 85 insertions(+), 45 deletions(-) diff --git a/org.adempiere.server-feature/hazelcast-template.xml b/org.adempiere.server-feature/hazelcast-template.xml index a38d27f5c6..68de459907 100644 --- a/org.adempiere.server-feature/hazelcast-template.xml +++ b/org.adempiere.server-feature/hazelcast-template.xml @@ -1,6 +1,6 @@ - + @@ -45,19 +45,27 @@ 127.0.0.1 + + 127.0.0.1 + - - my-access-key - my-secret-key - - us-west-1 - - ec2.amazonaws.com - - hazelcast-sg - type - hz-nodes - + + + + + my-access-key + my-secret-key + + us-east-1 + ec2.amazonaws.com + + hazelcast-sg + type + hz-nodes + 30 + + + 10.10.1.* @@ -126,7 +134,7 @@ then all entries of the map will be copied to another JVM for fail-safety. 0 means no backup. --> - 1 + 0 @@ -144,7 +152,7 @@ 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. --> - 0 + 1800 - NONE + LRU - 0 + 1000 25 100 - com.hazelcast.map.merge.PassThroughMergePolicy + com.hazelcast.map.merge.PutIfAbsentMapMergePolicy + + + INDEX-ONLY + + + mapName + 10000 + 0 + + + + cacheName + 10000 + 0 + + 1 SET @@ -226,19 +261,21 @@ BLOCK true - + 10000 1 0 - 30 + 0 BINARY - + 0 + + diff --git a/org.idempiere.hazelcast.service.config/hazelcast.xml b/org.idempiere.hazelcast.service.config/hazelcast.xml index cb80f192e2..2a35dfb6e8 100644 --- a/org.idempiere.hazelcast.service.config/hazelcast.xml +++ b/org.idempiere.hazelcast.service.config/hazelcast.xml @@ -49,19 +49,22 @@ 127.0.0.1 - - my-access-key - my-secret-key - - us-west-1 - - ec2.amazonaws.com - - hazelcast-sg - type - hz-nodes - + + + + my-access-key + my-secret-key + + us-east-1 + ec2.amazonaws.com + + hazelcast-sg + type + hz-nodes + 30 + +