tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
alshabib | ab98466 | 2014-12-04 18:56:18 -0800 | [diff] [blame] | 2 | |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 3 | <!-- |
alshabib | ab98466 | 2014-12-04 18:56:18 -0800 | [diff] [blame] | 4 | ~ Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved. |
| 5 | ~ Copyright 2014 Open Networking Laboratory |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 6 | ~ |
| 7 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | ~ you may not use this file except in compliance with the License. |
| 9 | ~ You may obtain a copy of the License at |
| 10 | ~ |
alshabib | ab98466 | 2014-12-04 18:56:18 -0800 | [diff] [blame] | 11 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 12 | ~ |
| 13 | ~ Unless required by applicable law or agreed to in writing, software |
| 14 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | ~ See the License for the specific language governing permissions and |
| 17 | ~ limitations under the License. |
| 18 | --> |
| 19 | |
| 20 | <!-- |
| 21 | The default Hazelcast configuration. This is used when: |
| 22 | |
| 23 | - no hazelcast.xml if present |
| 24 | |
| 25 | --> |
| 26 | <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.3.xsd" |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 27 | xmlns="http://www.hazelcast.com/schema/config" |
| 28 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 29 | <group> |
| 30 | <name>onos</name> |
| 31 | <password>rocks</password> |
| 32 | </group> |
| 33 | <management-center enabled="false">http://localhost:8080/mancenter</management-center> |
Patrick Liu | 080aeb4 | 2014-11-12 10:13:37 -0800 | [diff] [blame] | 34 | <properties> |
| 35 | <property name="hazelcast.max.no.heartbeat.seconds">30</property> |
| 36 | <property name="hazelcast.merge.first.run.delay.seconds">30</property> |
| 37 | <property name="hazelcast.merge.next.run.delay.seconds">30</property> |
| 38 | </properties> |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 39 | <network> |
| 40 | <port auto-increment="true" port-count="100">5701</port> |
| 41 | <outbound-ports> |
| 42 | <!-- |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 43 | Allowed port range when connecting to other nodes. |
| 44 | 0 or * means use system provided port. |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 45 | --> |
| 46 | <ports>0</ports> |
| 47 | </outbound-ports> |
| 48 | <join> |
| 49 | <multicast enabled="true"> |
| 50 | <multicast-group>224.2.2.3</multicast-group> |
| 51 | <multicast-port>54327</multicast-port> |
| 52 | </multicast> |
| 53 | <tcp-ip enabled="false"> |
| 54 | <interface>127.0.0.1</interface> |
| 55 | </tcp-ip> |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 56 | </join> |
| 57 | <interfaces enabled="true"> |
tom | ecd0fbd | 2014-09-19 08:47:05 -0700 | [diff] [blame] | 58 | <interface>192.168.56.*</interface> |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 59 | </interfaces> |
| 60 | <ssl enabled="false"/> |
| 61 | <socket-interceptor enabled="false"/> |
| 62 | <symmetric-encryption enabled="false"> |
| 63 | <!-- |
| 64 | encryption algorithm such as |
| 65 | DES/ECB/PKCS5Padding, |
| 66 | PBEWithMD5AndDES, |
| 67 | AES/CBC/PKCS5Padding, |
| 68 | Blowfish, |
| 69 | DESede |
| 70 | --> |
| 71 | <algorithm>PBEWithMD5AndDES</algorithm> |
| 72 | <!-- salt value to use when generating the secret key --> |
| 73 | <salt>thesalt</salt> |
| 74 | <!-- pass phrase to use when generating the secret key --> |
| 75 | <password>thepass</password> |
| 76 | <!-- iteration count to use when generating the secret key --> |
| 77 | <iteration-count>19</iteration-count> |
| 78 | </symmetric-encryption> |
| 79 | </network> |
| 80 | <partition-group enabled="false"/> |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 81 | <executor-service name="default"> |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 82 | <pool-size>16</pool-size> |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 83 | <!--Queue capacity. 0 means Integer.MAX_VALUE.--> |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 84 | <queue-capacity>0</queue-capacity> |
| 85 | </executor-service> |
| 86 | <queue name="default"> |
| 87 | <!-- |
| 88 | Maximum size of the queue. When a JVM's local queue size reaches the maximum, |
| 89 | all put/offer operations will get blocked until the queue size |
| 90 | of the JVM goes down below the maximum. |
| 91 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 92 | Integer.MAX_VALUE. Default is 0. |
| 93 | --> |
| 94 | <max-size>0</max-size> |
| 95 | <!-- |
| 96 | Number of backups. If 1 is set as the backup-count for example, |
| 97 | then all entries of the map will be copied to another JVM for |
| 98 | fail-safety. 0 means no backup. |
| 99 | --> |
| 100 | <backup-count>1</backup-count> |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 101 | |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 102 | <!-- |
| 103 | Number of async backups. 0 means no backup. |
| 104 | --> |
| 105 | <async-backup-count>0</async-backup-count> |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 106 | |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 107 | <empty-queue-ttl>-1</empty-queue-ttl> |
| 108 | </queue> |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 109 | <map name="default"> |
| 110 | <!-- |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 111 | Data type that will be used for storing recordMap. |
| 112 | Possible values: |
| 113 | BINARY (default): keys and values will be stored as binary data |
| 114 | OBJECT : values will be stored in their object forms |
| 115 | OFFHEAP : values will be stored in non-heap region of JVM |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 116 | --> |
| 117 | <in-memory-format>BINARY</in-memory-format> |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 118 | |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 119 | <!-- |
| 120 | Number of backups. If 1 is set as the backup-count for example, |
| 121 | then all entries of the map will be copied to another JVM for |
| 122 | fail-safety. 0 means no backup. |
| 123 | --> |
| 124 | <backup-count>1</backup-count> |
| 125 | <!-- |
| 126 | Number of async backups. 0 means no backup. |
| 127 | --> |
| 128 | <async-backup-count>0</async-backup-count> |
| 129 | <!-- |
| 130 | Maximum number of seconds for each entry to stay in the map. Entries that are |
| 131 | older than <time-to-live-seconds> and not updated for <time-to-live-seconds> |
| 132 | will get automatically evicted from the map. |
| 133 | Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0. |
| 134 | --> |
| 135 | <time-to-live-seconds>0</time-to-live-seconds> |
| 136 | <!-- |
| 137 | Maximum number of seconds for each entry to stay idle in the map. Entries that are |
| 138 | idle(not touched) for more than <max-idle-seconds> will get |
| 139 | automatically evicted from the map. Entry is touched if get, put or containsKey is called. |
| 140 | Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0. |
| 141 | --> |
| 142 | <max-idle-seconds>0</max-idle-seconds> |
| 143 | <!-- |
| 144 | Valid values are: |
| 145 | NONE (no eviction), |
| 146 | LRU (Least Recently Used), |
| 147 | LFU (Least Frequently Used). |
| 148 | NONE is the default. |
| 149 | --> |
| 150 | <eviction-policy>NONE</eviction-policy> |
| 151 | <!-- |
| 152 | Maximum size of the map. When max size is reached, |
| 153 | map is evicted based on the policy defined. |
| 154 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 155 | Integer.MAX_VALUE. Default is 0. |
| 156 | --> |
| 157 | <max-size policy="PER_NODE">0</max-size> |
| 158 | <!-- |
| 159 | When max. size is reached, specified percentage of |
| 160 | the map will be evicted. Any integer between 0 and 100. |
| 161 | If 25 is set for example, 25% of the entries will |
| 162 | get evicted. |
| 163 | --> |
| 164 | <eviction-percentage>25</eviction-percentage> |
| 165 | <!-- |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 166 | Minimum time in milliseconds which should pass before checking |
| 167 | if a partition of this map is evictable or not. |
| 168 | Default value is 100 millis. |
| 169 | --> |
| 170 | <min-eviction-check-millis>100</min-eviction-check-millis> |
| 171 | <!-- |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 172 | While recovering from split-brain (network partitioning), |
| 173 | map entries in the small cluster will merge into the bigger cluster |
| 174 | based on the policy set here. When an entry merge into the |
| 175 | cluster, there might an existing entry with the same key already. |
| 176 | Values of these entries might be different for that same key. |
| 177 | Which value should be set for the key? Conflict is resolved by |
| 178 | the policy set here. Default policy is PutIfAbsentMapMergePolicy |
| 179 | |
| 180 | There are built-in merge policies such as |
| 181 | com.hazelcast.map.merge.PassThroughMergePolicy; entry will be added if there is no existing entry for the key. |
| 182 | com.hazelcast.map.merge.PutIfAbsentMapMergePolicy ; entry will be added if the merging entry doesn't exist in the cluster. |
| 183 | com.hazelcast.map.merge.HigherHitsMapMergePolicy ; entry with the higher hits wins. |
| 184 | com.hazelcast.map.merge.LatestUpdateMapMergePolicy ; entry with the latest update wins. |
| 185 | --> |
Yuta HIGUCHI | 77ee1fe | 2014-11-12 10:40:06 -0800 | [diff] [blame] | 186 | <merge-policy>com.hazelcast.map.merge.PutIfAbsentMapMergePolicy</merge-policy> |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 187 | </map> |
| 188 | |
| 189 | <multimap name="default"> |
| 190 | <backup-count>1</backup-count> |
| 191 | <value-collection-type>SET</value-collection-type> |
| 192 | </multimap> |
| 193 | |
| 194 | <multimap name="default"> |
| 195 | <backup-count>1</backup-count> |
| 196 | <value-collection-type>SET</value-collection-type> |
| 197 | </multimap> |
| 198 | |
| 199 | <list name="default"> |
| 200 | <backup-count>1</backup-count> |
| 201 | </list> |
| 202 | |
| 203 | <set name="default"> |
| 204 | <backup-count>1</backup-count> |
| 205 | </set> |
| 206 | |
| 207 | <jobtracker name="default"> |
| 208 | <max-thread-size>0</max-thread-size> |
| 209 | <!-- Queue size 0 means number of partitions * 2 --> |
| 210 | <queue-size>0</queue-size> |
| 211 | <retry-count>0</retry-count> |
| 212 | <chunk-size>1000</chunk-size> |
| 213 | <communicate-stats>true</communicate-stats> |
| 214 | <topology-changed-strategy>CANCEL_RUNNING_OPERATION</topology-changed-strategy> |
| 215 | </jobtracker> |
| 216 | |
| 217 | <semaphore name="default"> |
| 218 | <initial-permits>0</initial-permits> |
| 219 | <backup-count>1</backup-count> |
| 220 | <async-backup-count>0</async-backup-count> |
| 221 | </semaphore> |
| 222 | |
| 223 | <serialization> |
| 224 | <portable-version>0</portable-version> |
| 225 | </serialization> |
| 226 | |
tom | 1a2908c | 2014-09-23 16:37:39 -0700 | [diff] [blame] | 227 | <services enable-defaults="true"/> |
| 228 | |
tom | 5a18e80 | 2014-09-18 12:38:15 -0700 | [diff] [blame] | 229 | </hazelcast> |