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