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