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