Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 1 | <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config |
Yuta HIGUCHI | 33a0497 | 2014-06-03 13:00:15 -0700 | [diff] [blame] | 2 | http://www.hazelcast.com/schema/config/hazelcast-config-3.2.xsd" |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 3 | xmlns="http://www.hazelcast.com/schema/config" |
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
Yuta HIGUCHI | 657b588 | 2014-04-26 12:52:22 -0700 | [diff] [blame] | 5 | <!-- Update xsd line, when upgrading Hazelcast version. --> |
| 6 | |
| 7 | <!-- |
| 8 | Note: When adding some elements to this file, |
| 9 | try to follow the schema defined in the xsd when possible. |
| 10 | --> |
| 11 | |
Yuta HIGUCHI | 85de40d | 2014-06-12 14:06:41 -0700 | [diff] [blame] | 12 | <group> |
| 13 | <name>__HC_CLUSTER__</name> |
| 14 | </group> |
| 15 | |
Yuta HIGUCHI | 657b588 | 2014-04-26 12:52:22 -0700 | [diff] [blame] | 16 | <properties> |
| 17 | <property name="hazelcast.logging.type">slf4j</property> |
| 18 | <property name="hazelcast.version.check.enabled">false</property> |
| 19 | </properties> |
| 20 | |
| 21 | <network> |
| 22 | <port auto-increment="true">__HC_PORT__</port> |
| 23 | <join> |
| 24 | __HC_NETWORK__ |
| 25 | <aws enabled="false"> |
| 26 | </aws> |
| 27 | </join> |
| 28 | </network> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 29 | |
Yuta HIGUCHI | 8447c36 | 2014-05-30 11:32:49 -0700 | [diff] [blame] | 30 | <serialization> |
| 31 | <!-- IdentifiedDataSerializableFactory for HZTable.VersionedValue class --> |
| 32 | <data-serializable-factories> |
| 33 | <data-serializable-factory factory-id="1">net.onrc.onos.core.datastore.hazelcast.VersionedValueSerializableFactory</data-serializable-factory> |
| 34 | </data-serializable-factories> |
| 35 | </serialization> |
| 36 | |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 37 | <!-- Configuration of maps used as a data store. --> |
| 38 | <map name="datastore://*"> |
| 39 | <!-- must use 'sync' backup to imitate other data store --> |
| 40 | <backup-count>3</backup-count> |
| 41 | <async-backup-count>0</async-backup-count> |
| 42 | <!-- must be false for strong consistency --> |
| 43 | <read-backup-data>false</read-backup-data> |
| 44 | <!-- near cache must not be used --> |
| 45 | </map> |
| 46 | |
| 47 | <map name="*"> |
| 48 | |
| 49 | <!-- |
| 50 | Number of sync-backups. If 1 is set as the backup-count for example, |
| 51 | then all entries of the map will be copied to another JVM for |
Yuta HIGUCHI | b2dc08d | 2014-06-05 16:55:34 -0700 | [diff] [blame] | 52 | fail-safety. Valid numbers are 0 (no backup), 1, 2, 3. |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 53 | --> |
Yuta HIGUCHI | b2dc08d | 2014-06-05 16:55:34 -0700 | [diff] [blame] | 54 | <backup-count>3</backup-count> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 55 | |
| 56 | <!-- |
| 57 | Number of async-backups. If 1 is set as the backup-count for example, |
| 58 | then all entries of the map will be copied to another JVM for |
| 59 | fail-safety. Valid numbers are 0 (no backup), 1, 2, 3. |
| 60 | --> |
Yuta HIGUCHI | b2dc08d | 2014-06-05 16:55:34 -0700 | [diff] [blame] | 61 | <async-backup-count>0</async-backup-count> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 62 | |
| 63 | <!-- |
| 64 | Can we read the local backup entries? Default value is false for |
| 65 | strong consistency. Being able to read backup data will give you |
| 66 | greater performance. |
| 67 | --> |
| 68 | <read-backup-data>true</read-backup-data> |
| 69 | |
| 70 | <near-cache> |
| 71 | <!-- |
| 72 | Maximum size of the near cache. When max size is reached, |
| 73 | cache is evicted based on the policy defined. |
| 74 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 75 | Integer.MAX_VALUE. Default is 0. |
| 76 | --> |
| 77 | <max-size>0</max-size> |
| 78 | <!-- |
| 79 | Maximum number of seconds for each entry to stay in the near cache. |
| 80 | Entries that are older than <time-to-live-seconds> will get |
| 81 | automatically evicted from the near cache. |
| 82 | Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. |
| 83 | Default is 0. |
| 84 | --> |
| 85 | <time-to-live-seconds>0</time-to-live-seconds> |
| 86 | |
| 87 | <!-- |
| 88 | Maximum number of seconds each entry can stay in the near cache as |
| 89 | untouched (not-read). |
| 90 | Entries that are not read (touched) more than <max-idle-seconds> |
| 91 | value will get removed from the near cache. |
| 92 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 93 | Integer.MAX_VALUE. Default is 0. |
| 94 | --> |
| 95 | <max-idle-seconds>0</max-idle-seconds> |
| 96 | |
| 97 | <!-- |
| 98 | Valid values are: |
| 99 | NONE (no extra eviction, <time-to-live-seconds> may still apply), |
| 100 | LRU (Least Recently Used), |
| 101 | LFU (Least Frequently Used). |
| 102 | LRU is the default. |
| 103 | Regardless of the eviction policy used, <time-to-live-seconds> will |
| 104 | still apply. |
| 105 | --> |
| 106 | <eviction-policy>NONE</eviction-policy> |
| 107 | |
| 108 | <!-- |
| 109 | Should the cached entries get evicted if the entries are changed |
| 110 | (updated or removed). |
| 111 | true of false. Default is true. |
| 112 | --> |
| 113 | <invalidate-on-change>true</invalidate-on-change> |
| 114 | |
| 115 | </near-cache> |
| 116 | </map> |
| 117 | |
| 118 | <topic name="*"> |
| 119 | <global-ordering-enabled>false</global-ordering-enabled> |
| 120 | </topic> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 121 | </hazelcast> |