1<?xml version="1.0" encoding="UTF-8"?>
2<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.2.xsd"
3           xmlns="http://www.hazelcast.com/schema/config"
4           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5    <properties>
6        <property name="hazelcast.mancenter.enabled">false</property>
7        <property name="hazelcast.memcache.enabled">false</property>
8        <property name="hazelcast.rest.enabled">false</property>
9        <property name="hazelcast.wait.seconds.before.join">0</property>
10        <property name="hazelcast.logging.type">jdk</property>
11    </properties>
12
13    <group>
14        <name>dev</name>
15        <password>dev-pass</password>
16    </group>
17    <management-center enabled="false">http://localhost:8080/mancenter</management-center>
18    <network>
19        <port auto-increment="true" port-count="100">5701</port>
20        <outbound-ports>
21            <!--
22            Allowed port range when connecting to other nodes.
23            0 or * means use system provided port.
24            -->
25            <ports>0</ports>
26        </outbound-ports>
27        <join>
28            <multicast enabled="true">
29                <multicast-group>224.2.2.3</multicast-group>
30                <multicast-port>54327</multicast-port>
31            </multicast>
32            <tcp-ip enabled="false">
33                <interface>192.168.1.28</interface>
34            </tcp-ip>
35            <aws enabled="false">
36                <access-key>my-access-key</access-key>
37                <secret-key>my-secret-key</secret-key>
38                <!--optional, default is us-east-1 -->
39                <region>us-west-1</region>
40                <!--optional, default is ec2.amazonaws.com. If set, region shouldn't be set as it will override this property -->
41                <host-header>ec2.amazonaws.com</host-header>
42                <!-- optional, only instances belonging to this group will be discovered, default will try all running instances -->
43                <security-group-name>hazelcast-sg</security-group-name>
44                <tag-key>type</tag-key>
45                <tag-value>hz-nodes</tag-value>
46            </aws>
47        </join>
48        <interfaces enabled="false">
49            <interface>10.10.1.*</interface>
50        </interfaces>
51        <ssl enabled="false" />
52        <socket-interceptor enabled="false" />
53        <symmetric-encryption enabled="false">
54            <!--
55               encryption algorithm such as
56               DES/ECB/PKCS5Padding,
57               PBEWithMD5AndDES,
58               AES/CBC/PKCS5Padding,
59               Blowfish,
60               DESede
61            -->
62            <algorithm>PBEWithMD5AndDES</algorithm>
63            <!-- salt value to use when generating the secret key -->
64            <salt>thesalt</salt>
65            <!-- pass phrase to use when generating the secret key -->
66            <password>thepass</password>
67            <!-- iteration count to use when generating the secret key -->
68            <iteration-count>19</iteration-count>
69        </symmetric-encryption>
70    </network>
71    <partition-group enabled="false"/>
72    <executor-service name="default">
73        <pool-size>16</pool-size>
74        <!--Queue capacity. 0 means Integer.MAX_VALUE.-->
75        <queue-capacity>0</queue-capacity>
76    </executor-service>
77    <map name="subs">
78
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. 0 means no backup.
83        -->
84        <backup-count>1</backup-count>
85        <!--
86			Maximum number of seconds for each entry to stay in the map. Entries that are
87			older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
88			will get automatically evicted from the map.
89			Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
90		-->
91        <time-to-live-seconds>0</time-to-live-seconds>
92        <!--
93			Maximum number of seconds for each entry to stay idle in the map. Entries that are
94			idle(not touched) for more than <max-idle-seconds> will get
95			automatically evicted from the map. Entry is touched if get, put or containsKey is called.
96			Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
97		-->
98        <max-idle-seconds>0</max-idle-seconds>
99        <!--
100            Valid values are:
101            NONE (no eviction),
102            LRU (Least Recently Used),
103            LFU (Least Frequently Used).
104            NONE is the default.
105        -->
106        <eviction-policy>NONE</eviction-policy>
107        <!--
108            Maximum size of the map. When max size is reached,
109            map is evicted based on the policy defined.
110            Any integer between 0 and Integer.MAX_VALUE. 0 means
111            Integer.MAX_VALUE. Default is 0.
112        -->
113        <max-size policy="PER_NODE">0</max-size>
114        <!--
115            When max. size is reached, specified percentage of
116            the map will be evicted. Any integer between 0 and 100.
117            If 25 is set for example, 25% of the entries will
118            get evicted.
119        -->
120        <eviction-percentage>25</eviction-percentage>
121        <!--
122            While recovering from split-brain (network partitioning),
123            map entries in the small cluster will merge into the bigger cluster
124            based on the policy set here. When an entry merge into the
125            cluster, there might an existing entry with the same key already.
126            Values of these entries might be different for that same key.
127            Which value should be set for the key? Conflict is resolved by
128            the policy set here. Default policy is PutIfAbsentMapMergePolicy
129
130            There are built-in merge policies such as
131            com.hazelcast.map.merge.PassThroughMergePolicy; entry will be added if there is no existing entry for the key.
132            com.hazelcast.map.merge.PutIfAbsentMapMergePolicy ; entry will be added if the merging entry doesn't exist in the cluster.
133            com.hazelcast.map.merge.HigherHitsMapMergePolicy ; entry with the higher hits wins.
134            com.hazelcast.map.merge.LatestUpdateMapMergePolicy ; entry with the latest update wins.
135        -->
136        <merge-policy>com.hazelcast.map.merge.LatestUpdateMapMergePolicy</merge-policy>
137
138    </map>
139
140</hazelcast>
141