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> |
Yuta HIGUCHI | 8f18219 | 2014-08-02 18:47:42 -0700 | [diff] [blame] | 35 | <serializers> |
| 36 | <serializer type-class="net.onrc.onos.core.util.distributed.sharedlog.internal.LogValue">net.onrc.onos.core.util.distributed.sharedlog.hazelcast.LogValueSerializer</serializer> |
| 37 | </serializers> |
Yuta HIGUCHI | 8447c36 | 2014-05-30 11:32:49 -0700 | [diff] [blame] | 38 | </serialization> |
| 39 | |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 40 | <!-- Configuration of maps used as a data store. --> |
| 41 | <map name="datastore://*"> |
| 42 | <!-- must use 'sync' backup to imitate other data store --> |
| 43 | <backup-count>3</backup-count> |
| 44 | <async-backup-count>0</async-backup-count> |
| 45 | <!-- must be false for strong consistency --> |
| 46 | <read-backup-data>false</read-backup-data> |
| 47 | <!-- near cache must not be used --> |
| 48 | </map> |
| 49 | |
Yuta HIGUCHI | 8f18219 | 2014-08-02 18:47:42 -0700 | [diff] [blame] | 50 | <!-- Configuration of maps used as a log store. --> |
| 51 | <map name="logmap://*"> |
| 52 | <!-- must use 'sync' backup to imitate other data store --> |
| 53 | <backup-count>3</backup-count> |
| 54 | <async-backup-count>0</async-backup-count> |
| 55 | <!-- can be true, since log map value is basically immutable --> |
| 56 | <read-backup-data>true</read-backup-data> |
| 57 | <!-- near cache can be enabled --> |
| 58 | <near-cache> |
| 59 | <!-- TODO revisit random params --> |
| 60 | <max-size>5000</max-size> |
| 61 | <time-to-live-seconds>300</time-to-live-seconds> |
| 62 | <eviction-policy>LRU</eviction-policy> |
| 63 | </near-cache> |
| 64 | </map> |
| 65 | |
| 66 | <!-- Configuration of maps used as a snap shot store. --> |
| 67 | <map name="ssmap://*"> |
| 68 | <!-- must use 'sync' backup to imitate other data store --> |
| 69 | <backup-count>3</backup-count> |
| 70 | <async-backup-count>0</async-backup-count> |
| 71 | <!-- can be true, since snap shot map value is basically immutable --> |
| 72 | <read-backup-data>true</read-backup-data> |
| 73 | <!-- near cache can be enabled --> |
| 74 | <near-cache> |
| 75 | <!-- TODO revisit random params --> |
| 76 | <max-size>10</max-size> |
| 77 | <time-to-live-seconds>300</time-to-live-seconds> |
| 78 | <eviction-policy>LRU</eviction-policy> |
| 79 | </near-cache> |
| 80 | </map> |
| 81 | |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 82 | <map name="*"> |
| 83 | |
| 84 | <!-- |
| 85 | Number of sync-backups. If 1 is set as the backup-count for example, |
| 86 | 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] | 87 | fail-safety. Valid numbers are 0 (no backup), 1, 2, 3. |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 88 | --> |
Yuta HIGUCHI | b2dc08d | 2014-06-05 16:55:34 -0700 | [diff] [blame] | 89 | <backup-count>3</backup-count> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 90 | |
| 91 | <!-- |
| 92 | Number of async-backups. If 1 is set as the backup-count for example, |
| 93 | then all entries of the map will be copied to another JVM for |
| 94 | fail-safety. Valid numbers are 0 (no backup), 1, 2, 3. |
| 95 | --> |
Yuta HIGUCHI | b2dc08d | 2014-06-05 16:55:34 -0700 | [diff] [blame] | 96 | <async-backup-count>0</async-backup-count> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 97 | |
| 98 | <!-- |
| 99 | Can we read the local backup entries? Default value is false for |
| 100 | strong consistency. Being able to read backup data will give you |
| 101 | greater performance. |
| 102 | --> |
| 103 | <read-backup-data>true</read-backup-data> |
| 104 | |
| 105 | <near-cache> |
| 106 | <!-- |
| 107 | Maximum size of the near cache. When max size is reached, |
| 108 | cache is evicted based on the policy defined. |
| 109 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 110 | Integer.MAX_VALUE. Default is 0. |
| 111 | --> |
| 112 | <max-size>0</max-size> |
| 113 | <!-- |
| 114 | Maximum number of seconds for each entry to stay in the near cache. |
| 115 | Entries that are older than <time-to-live-seconds> will get |
| 116 | automatically evicted from the near cache. |
| 117 | Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. |
| 118 | Default is 0. |
| 119 | --> |
| 120 | <time-to-live-seconds>0</time-to-live-seconds> |
| 121 | |
| 122 | <!-- |
| 123 | Maximum number of seconds each entry can stay in the near cache as |
| 124 | untouched (not-read). |
| 125 | Entries that are not read (touched) more than <max-idle-seconds> |
| 126 | value will get removed from the near cache. |
| 127 | Any integer between 0 and Integer.MAX_VALUE. 0 means |
| 128 | Integer.MAX_VALUE. Default is 0. |
| 129 | --> |
| 130 | <max-idle-seconds>0</max-idle-seconds> |
| 131 | |
| 132 | <!-- |
| 133 | Valid values are: |
| 134 | NONE (no extra eviction, <time-to-live-seconds> may still apply), |
| 135 | LRU (Least Recently Used), |
| 136 | LFU (Least Frequently Used). |
| 137 | LRU is the default. |
| 138 | Regardless of the eviction policy used, <time-to-live-seconds> will |
| 139 | still apply. |
| 140 | --> |
| 141 | <eviction-policy>NONE</eviction-policy> |
| 142 | |
| 143 | <!-- |
| 144 | Should the cached entries get evicted if the entries are changed |
| 145 | (updated or removed). |
| 146 | true of false. Default is true. |
| 147 | --> |
| 148 | <invalidate-on-change>true</invalidate-on-change> |
| 149 | |
| 150 | </near-cache> |
| 151 | </map> |
| 152 | |
| 153 | <topic name="*"> |
| 154 | <global-ordering-enabled>false</global-ordering-enabled> |
| 155 | </topic> |
Naoki Shiota | 4e92851 | 2014-04-03 15:49:35 -0700 | [diff] [blame] | 156 | </hazelcast> |