Advertisement
validfz

hazel

Oct 24th, 2024
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.27 KB | Cybersecurity | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  ~ Copyright (c) 2008-2017, Hazelcast, Inc. All Rights Reserved.
  4.  ~
  5.  ~ Licensed under the Apache License, Version 2.0 (the "License");
  6.  ~ you may not use this file except in compliance with the License.
  7.  ~ You may obtain a copy of the License at
  8.  ~
  9.  ~ http://www.apache.org/licenses/LICENSE-2.0
  10.  ~
  11.  ~ Unless required by applicable law or agreed to in writing, software
  12.  ~ distributed under the License is distributed on an "AS IS" BASIS,
  13.  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  ~ See the License for the specific language governing permissions and
  15.  ~ limitations under the License.
  16.  -->
  17.  
  18. <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.9.xsd"
  19.           xmlns="http://www.hazelcast.com/schema/config"
  20.           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  21.     <group>
  22.         <name>standalone</name>
  23.         <password>st-pass</password>
  24.     </group>
  25.     <management-center enabled="false">http://localhost:8080/mancenter</management-center>
  26.     <properties>
  27.         <property name="hazelcast.logging.type">slf4j</property>
  28.         <property name="hazelcast.jmx">true</property>
  29.         <property name="hazelcast.jmx.detailed">true</property>
  30.         <property name="hazelcast.memcache.enabled">false</property>
  31.         <property name="hazelcast.shutdownhook.enabled">false</property>
  32.     </properties>
  33.     <network>
  34.         <port auto-increment="true" port-count="100">5701</port>
  35.         <outbound-ports>
  36.             <!--
  37.            Allowed port range when connecting to other nodes.
  38.            0 or * means use system provided port.
  39.            -->
  40.             <ports>0</ports>
  41.         </outbound-ports>
  42.         <join>
  43.             <multicast enabled="false">
  44.                 <multicast-group>224.2.2.3</multicast-group>
  45.                 <multicast-port>54327</multicast-port>
  46.             </multicast>
  47.             <tcp-ip enabled="true">
  48.                 <interface>127.0.0.1</interface>
  49.                 <member-list>
  50.                     <member>127.0.0.1</member>
  51.                 </member-list>
  52.             </tcp-ip>
  53.         </join>
  54.         <interfaces enabled="false">
  55.             <interface>10.10.1.*</interface>
  56.         </interfaces>
  57.         <ssl enabled="false"/>
  58.         <socket-interceptor enabled="false"/>
  59.         <symmetric-encryption enabled="false">
  60.             <!--
  61.               encryption algorithm such as
  62.               DES/ECB/PKCS5Padding,
  63.               PBEWithMD5AndDES,
  64.               AES/CBC/PKCS5Padding,
  65.               Blowfish,
  66.               DESede
  67.            -->
  68.             <algorithm>PBEWithMD5AndDES</algorithm>
  69.             <!-- salt value to use when generating the secret key -->
  70.             <salt>thesalt</salt>
  71.             <!-- pass phrase to use when generating the secret key -->
  72.             <password>thepass</password>
  73.             <!-- iteration count to use when generating the secret key -->
  74.             <iteration-count>19</iteration-count>
  75.         </symmetric-encryption>
  76.     </network>
  77.     <partition-group enabled="false"/>
  78.     <executor-service name="default">
  79.     <!-- pool-size dari 16 ke 64  -->
  80.         <pool-size>64</pool-size>
  81.         <!--Queue capacity. 0 means Integer.MAX_VALUE.-->
  82.         <queue-capacity>0</queue-capacity>
  83.     </executor-service>
  84.     <map name="source_state">
  85.         <!--
  86.           Data type that will be used for storing recordMap.
  87.           Possible values:
  88.           BINARY (default): keys and values will be stored as binary data
  89.           OBJECT : values will be stored in their object forms
  90.           NATIVE : values will be stored in non-heap region of JVM
  91.        -->
  92.         <in-memory-format>BINARY</in-memory-format>
  93.  
  94.         <!--
  95.            Number of backups. If 1 is set as the backup-count for example,
  96.            then all entries of the map will be copied to another JVM for
  97.            fail-safety. 0 means no backup.
  98.        -->
  99.         <backup-count>1</backup-count>
  100.         <!--
  101.            Number of async backups. 0 means no backup.
  102.        -->
  103.         <async-backup-count>0</async-backup-count>
  104.         <!--
  105.             Maximum number of seconds for each entry to stay in the map. Entries that are
  106.             older than <time-to-live-seconds> and not updated for <time-to-live-seconds>
  107.             will get automatically evicted from the map.
  108.             Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
  109.         -->
  110.         <time-to-live-seconds>0</time-to-live-seconds>
  111.         <!--
  112.             Maximum number of seconds for each entry to stay idle in the map. Entries that are
  113.             idle(not touched) for more than <max-idle-seconds> will get
  114.             automatically evicted from the map. Entry is touched if get, put or containsKey is called.
  115.             Any integer between 0 and Integer.MAX_VALUE. 0 means infinite. Default is 0.
  116.         -->
  117.         <max-idle-seconds>0</max-idle-seconds>
  118.         <!--
  119.            Valid values are:
  120.            NONE (no eviction),
  121.            LRU (Least Recently Used),
  122.            LFU (Least Frequently Used).
  123.            NONE is the default.
  124.        -->
  125.         <eviction-policy>LRU</eviction-policy>
  126.         <!--
  127.            Maximum size of the map. When max size is reached,
  128.            map is evicted based on the policy defined.
  129.            Any integer between 0 and Integer.MAX_VALUE. 0 means
  130.            Integer.MAX_VALUE. Default is 0.
  131.         300 dirubah jadi 3000
  132.        -->
  133.         <max-size policy="USED_HEAP_SIZE">3000</max-size>
  134.         <!--
  135.            `eviction-percentage` property is deprecated and will be ignored when it is set.
  136.  
  137.            As of version 3.7, eviction mechanism changed.
  138.            It uses a probabilistic algorithm based on sampling. Please see documentation for further details
  139.        -->
  140.         <eviction-percentage>25</eviction-percentage>
  141.         <!--
  142.            `min-eviction-check-millis` property is deprecated  and will be ignored when it is set.
  143.  
  144.            As of version 3.7, eviction mechanism changed.
  145.            It uses a probabilistic algorithm based on sampling. Please see documentation for further details
  146.        -->
  147.         <min-eviction-check-millis>100</min-eviction-check-millis>
  148.         <!--
  149.            While recovering from split-brain (network partitioning),
  150.            map entries in the small cluster will merge into the bigger cluster
  151.            based on the policy set here. When an entry merge into the
  152.            cluster, there might an existing entry with the same key already.
  153.            Values of these entries might be different for that same key.
  154.            Which value should be set for the key? Conflict is resolved by
  155.            the policy set here. Default policy is PutIfAbsentMapMergePolicy
  156.  
  157.            There are built-in merge policies such as
  158.            com.hazelcast.map.merge.PassThroughMergePolicy; entry will be overwritten if merging entry exists for the key.
  159.            com.hazelcast.map.merge.PutIfAbsentMapMergePolicy ; entry will be added if the merging entry doesn't exist in the cluster.
  160.            com.hazelcast.map.merge.HigherHitsMapMergePolicy ; entry with the higher hits wins.
  161.            com.hazelcast.map.merge.LatestUpdateMapMergePolicy ; entry with the latest update wins.
  162.        -->
  163.         <merge-policy>com.hazelcast.map.merge.LatestUpdateMapMergePolicy</merge-policy>
  164.  
  165.         <!--
  166.           Control caching of de-serialized values. Caching makes query evaluation faster, but it cost memory.
  167.           Possible Values:
  168.                        NEVER: Never cache deserialized object
  169.                        INDEX-ONLY: Caches values only when they are inserted into an index.
  170.                        ALWAYS: Always cache deserialized values.
  171.        -->
  172.         <cache-deserialized-values>INDEX-ONLY</cache-deserialized-values>
  173.  
  174.     </map>
  175.  
  176.     <serialization>
  177.         <portable-version>0</portable-version>
  178.         <serializers>
  179.             <global-serializer override-java-serialization="true">com.navixy.commons.cache.FstSerializer
  180.             </global-serializer>
  181.         </serializers>
  182.     </serialization>
  183.  
  184.     <services enable-defaults="true"/>
  185.  
  186.     <reliable-topic name="local-cache-invalidation*">
  187.         <topic-overload-policy>DISCARD_OLDEST</topic-overload-policy>
  188.     </reliable-topic>
  189.  
  190. </hazelcast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement