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