| <?xml version="1.0" encoding="UTF-8"?> |
| <hz:hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config http://www.hazelcast.com/schema/config/hazelcast-config-3.6.xsd" |
| xmlns:hz="http://www.hazelcast.com/schema/config" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <hz:group> |
| <hz:name>cellar</hz:name> |
| <hz:password>pass</hz:password> |
| </hz:group> |
| <hz:management-center enabled="false">http://localhost:8080/mancenter</hz:management-center> |
| <hz:network> |
| <hz:port auto-increment="true" port-count="100">5701</hz:port> |
| <hz:outbound-ports> |
| <!-- |
| Allowed port range when connecting to other nodes. |
| 0 or * means use system provided port. |
| --> |
| <hz:ports>0</hz:ports> |
| </hz:outbound-ports> |
| <hz:join> |
| <hz:multicast enabled="true"> |
| <hz:multicast-group>224.2.2.3</hz:multicast-group> |
| <hz:multicast-port>54327</hz:multicast-port> |
| </hz:multicast> |
| <hz:tcp-ip enabled="false"> |
| <hz:interface>127.0.0.1</hz:interface> |
| </hz:tcp-ip> |
| <hz:aws enabled="false"> |
| <hz:access-key>my-access-key</hz:access-key> |
| <hz:secret-key>my-secret-key</hz:secret-key> |
| <!--optional, default is us-east-1 --> |
| <hz:region>us-west-1</hz:region> |
| <!--optional, default is ec2.amazonaws.com. If set, region shouldn't be set as it will override this property --> |
| <hz:host-header>ec2.amazonaws.com</hz:host-header> |
| <!-- optional, only instances belonging to this group will be discovered, default will try all running instances --> |
| <hz:security-group-name>hazelcast-sg</hz:security-group-name> |
| <hz:tag-key>type</hz:tag-key> |
| <hz:tag-value>hz-nodes</hz:tag-value> |
| </hz:aws> |
| </hz:join> |
| <hz:interfaces enabled="false"> |
| <hz:interface>10.10.1.*</hz:interface> |
| </hz:interfaces> |
| <hz:ssl enabled="false"/> |
| <hz:socket-interceptor enabled="false"/> |
| <hz:symmetric-encryption enabled="false"> |
| <!-- |
| encryption algorithm such as |
| DES/ECB/PKCS5Padding, |
| PBEWithMD5AndDES, |
| AES/CBC/PKCS5Padding, |
| Blowfish, |
| DESede |
| --> |
| <hz:algorithm>PBEWithMD5AndDES</hz:algorithm> |
| <!-- salt value to use when generating the secret key --> |
| <hz:salt>thesalt</hz:salt> |
| <!-- pass phrase to use when generating the secret key --> |
| <hz:password>thepass</hz:password> |
| <!-- iteration count to use when generating the secret key --> |
| <hz:iteration-count>19</hz:iteration-count> |
| </hz:symmetric-encryption> |
| </hz:network> |
| <hz:partition-group enabled="false"/> |
| <hz:executor-service> |
| <hz:pool-size>16</hz:pool-size> |
| <!-- Queue capacity. 0 means Integer.MAX_VALUE --> |
| <hz:queue-capacity>0</hz:queue-capacity> |
| </hz:executor-service> |
| <hz:queue name="default"> |
| <!-- |
| Maximum size of the queue. When a JVM's local queue size reaches the maximum, |
| all put/offer operations will get blocked until the queue size |
| of the JVM goes down below the maximum. |
| Any integer between 0 and Integer.MAX_VALUE. 0 means |
| Integer.MAX_VALUE. Default is 0. |
| --> |
| <hz:max-size>0</hz:max-size> |
| <!-- |
| Number of backups. If 1 is set as the backup-count for example, |
| then all entries of the map will be copied to another JVM for |
| fail-safety. 0 means no backup. |
| --> |
| <hz:backup-count>1</hz:backup-count> |
| <!-- |
| Number of async backups. 0 means no backup. |
| --> |
| <hz:async-backup-count>0</hz:async-backup-count> |
| <hz:empty-queue-ttl>-1</hz:empty-queue-ttl> |
| </hz:queue> |
| |
| <hz:map name="default"> |
| <!-- |
| Data type that will be used for storing recordMap. |
| Possible values: |
| BINARY (default): keys and values will be stored as binary data |
| OBJECT : values will be stored in their object forms |
| OFFHEAP : values will be stored in non-heap region of JVM |
| --> |
| <hz:in-memory-format>BINARY</hz:in-memory-format> |
| <!-- |
| Number of backups. If 1 is set as the backup-count for example, |
| then all entries of the map will be copied to another JVM for |
| fail-safety. 0 means no backup. |
| --> |
| <hz:backup-count>1</hz:backup-count> |
| <!-- |
| Number of async backups. 0 means no backup. |
| --> |
| <hz:async-backup-count>0</hz:async-backup-count> |
| <!-- |
| Maximum number of seconds for each entry to stay in the map. Entries that are |
| older than <time-to-live-seconds> and not updated for <time-to-live-seconds> |
| will get automatically evicted from the map. |
| Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0. |
| --> |
| <hz:time-to-live-seconds>0</hz:time-to-live-seconds> |
| <!-- |
| Maximum number of seconds for each entry to stay idle in the map. Entries that are |
| idle(not touched) for more than <max-idle-seconds> will get |
| 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. |
| --> |
| <hz:max-idle-seconds>0</hz:max-idle-seconds> |
| <!-- |
| Valid values are: |
| NONE (no eviction), |
| LRU (Least Recently Used), |
| LFU (Least Frequently Used). |
| NONE is the default. |
| --> |
| <hz:eviction-policy>NONE</hz:eviction-policy> |
| <!-- |
| Maximum size of the map. When max size is reached, |
| map is evicted based on the policy defined. |
| Any integer between 0 and Integer.MAX_VALUE. 0 means |
| Integer.MAX_VALUE. Default is 0. |
| --> |
| <hz:max-size policy="PER_NODE">0</hz:max-size> |
| <!-- |
| When max. size is reached, specified percentage of |
| the map will be evicted. Any integer between 0 and 100. |
| If 25 is set for example, 25% of the entries will |
| get evicted. |
| --> |
| <hz:eviction-percentage>25</hz:eviction-percentage> |
| <!-- |
| While recovering from split-brain (network partitioning), |
| map entries in the small cluster will merge into the bigger cluster |
| based on the policy set here. When an entry merge into the |
| cluster, there might an existing entry with the same key already. |
| Values of these entries might be different for that same key. |
| Which value should be set for the key? Conflict is resolved by |
| the policy set here. Default policy is PutIfAbsentMapMergePolicy |
| |
| There are built-in merge policies such as |
| com.hazelcast.map.merge.PassThroughMergePolicy; entry will be added if there is no existing entry for the key. |
| com.hazelcast.map.merge.PutIfAbsentMapMergePolicy ; entry will be added if the merging entry doesn't exist in the cluster. |
| com.hazelcast.map.merge.HigherHitsMapMergePolicy ; entry with the higher hits wins. |
| com.hazelcast.map.merge.LatestUpdateMapMergePolicy ; entry with the latest update wins. |
| --> |
| <hz:merge-policy>com.hazelcast.map.merge.PassThroughMergePolicy</hz:merge-policy> |
| </hz:map> |
| |
| <hz:multimap name="default"> |
| <hz:backup-count>1</hz:backup-count> |
| <hz:value-collection-type>SET</hz:value-collection-type> |
| </hz:multimap> |
| |
| <hz:multimap name="default"> |
| <hz:backup-count>1</hz:backup-count> |
| <hz:value-collection-type>SET</hz:value-collection-type> |
| </hz:multimap> |
| |
| <hz:list name="default"> |
| <hz:backup-count>1</hz:backup-count> |
| </hz:list> |
| |
| <hz:set name="default"> |
| <hz:backup-count>1</hz:backup-count> |
| </hz:set> |
| |
| <hz:jobtracker name="default"> |
| <hz:max-thread-size>0</hz:max-thread-size> |
| <!-- Queue size 0 means number of partitions * 2 --> |
| <hz:queue-size>0</hz:queue-size> |
| <hz:retry-count>0</hz:retry-count> |
| <hz:chunk-size>1000</hz:chunk-size> |
| <hz:communicate-stats>true</hz:communicate-stats> |
| <hz:topology-changed-strategy>CANCEL_RUNNING_OPERATION</hz:topology-changed-strategy> |
| </hz:jobtracker> |
| |
| <hz:semaphore name="default"> |
| <hz:initial-permits>0</hz:initial-permits> |
| <hz:backup-count>1</hz:backup-count> |
| <hz:async-backup-count>0</hz:async-backup-count> |
| </hz:semaphore> |
| |
| <hz:serialization> |
| <hz:portable-version>0</hz:portable-version> |
| </hz:serialization> |
| |
| <hz:services enable-defaults="true" /> |
| </hz:hazelcast> |