e.infinispan.quarkus-infinispan-embedded-integration-tests.1.0.0.source-code.embedded.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:15.0 https://infinispan.org/schemas/infinispan-config-15.0.xsd urn:infinispan:config:store:jdbc:15.0 https://infinispan.org/schemas/infinispan-cachestore-jdbc-config-15.0.xsd" xmlns="urn:infinispan:config:15.0" xmlns:ispn="urn:infinispan:config:15.0" xmlns:jdbc="urn:infinispan:config:store:jdbc:15.0" xmlns:sql="urn:infinispan:config:store:sql:15.0" > <jgroups transport="org.infinispan.remoting.transport.jgroups.JGroupsTransport"> <!-- Load external JGroups stacks --> <stack-file name="udp-test" path="stacks/udp.xml"/> <stack-file name="tcp-test" path="stacks/tcp_mping/tcp1.xml"/> <!-- Inline definition --> <stack name="mping"> <TCP bind_port="7800" port_range="30" recv_buf_size="20000000" send_buf_size="640000" sock_conn_timeout="300" bundler_type="transfer-queue" thread_pool.min_threads="0" thread_pool.max_threads="25" thread_pool.keep_alive_time="5000" use_virtual_threads="${jgroups.thread.virtual,org.infinispan.threads.virtual:false}" xmlns="urn:org:jgroups"/> <RED/> <MPING bind_addr="127.0.0.1" break_on_coord_rsp="true" mcast_addr="${jgroups.mping.mcast_addr:228.2.4.6}" mcast_port="${jgroups.mping.mcast_port:43366}" num_discovery_runs="3" ip_ttl="${jgroups.udp.ip_ttl:2}" xmlns="urn:org:jgroups"/> <MERGE3 xmlns="urn:org:jgroups"/> <FD_SOCK xmlns="urn:org:jgroups"/> <FD_ALL3 timeout="3000" interval="1000" xmlns="urn:org:jgroups" /> <VERIFY_SUSPECT timeout="1000" xmlns="urn:org:jgroups"/> <pbcast.NAKACK2 use_mcast_xmit="false" xmit_interval="200" max_xmit_req_size="500" xmit_table_num_rows="50" xmit_table_msgs_per_row="1024" xmit_table_max_compaction_time="30000" xmlns="urn:org:jgroups"/> <UNICAST3 conn_close_timeout="5000" xmit_interval="200" max_xmit_req_size="500" xmit_table_num_rows="50" xmit_table_msgs_per_row="1024" xmit_table_max_compaction_time="30000" xmlns="urn:org:jgroups" /> <pbcast.STABLE desired_avg_gossip="2000" max_bytes="1M" xmlns="urn:org:jgroups" /> <pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" xmlns="urn:org:jgroups"/> <UFC max_credits="4m" min_threshold="0.40" xmlns="urn:org:jgroups"/> <MFC max_credits="4m" min_threshold="0.40" xmlns="urn:org:jgroups"/> <FRAG3 xmlns="urn:org:jgroups"/> </stack> <!-- Use the "tcp" stack but override some protocol attributes --> <stack name="mytcp" extends="tcp-test"> <FD_ALL3 timeout="3500" ispn:stack.combine="COMBINE" xmlns="urn:org:jgroups"/> </stack> <!-- Use the "tcp" stack but replace the discovery --> <stack name="tcpgossip" extends="tcp-test"> <MPING ispn:stack.combine="REMOVE" xmlns="urn:org:jgroups"/> <TCPGOSSIP initial_hosts="${jgroups.tunnel.gossip_router_hosts:localhost[12001]}" ispn:stack.combine="INSERT_AFTER" ispn:stack.position="RED" xmlns="urn:org:jgroups"/> </stack> <!-- Use the "tcp" stack but replace the discovery --> <stack name="tcpfdhost" extends="tcp"> <FD_HOST ispn:stack.combine="REPLACE" ispn:stack.position="FD_ALL3" xmlns="urn:org:jgroups"/> </stack> <!-- Add a relay configuration using a previously declared stack to talk to the remote site --> <stack name="xsite" extends="udp"> <relay.RELAY2 site="LON" xmlns="urn:org:jgroups" max_site_masters="1000"/> <remote-sites default-stack="tcpgossip"> <remote-site name="NYC" stack="tcp"/> <remote-site name="LON" stack="tcp"/> </remote-sites> </stack> </jgroups> <threads> <thread-factory name="infinispan-factory" group-name="infinispan" thread-name-pattern="%G %i" priority="5"/> <!-- listener-executor --> <blocking-bounded-queue-thread-pool name="infinispan-listener" thread-factory="infinispan-factory" core-threads="1" max-threads="1" queue-length="0" keepalive-time="0"/> <blocking-bounded-queue-thread-pool name="infinispan-blocking" thread-factory="infinispan-factory" core-threads="3" max-threads="8" queue-length="121" keepalive-time="9859" /> <non-blocking-bounded-queue-thread-pool name="infinispan-non-blocking" thread-factory="infinispan-factory" core-threads="12" max-threads="15" queue-length="132" keepalive-time="9851" /> <!-- expiration-executor --> <scheduled-thread-pool name="infinispan-expiration" thread-factory="infinispan-factory" /> </threads> <cache-container name="maximal" default-cache="local" expiration-executor="infinispan-expiration" listener-executor="infinispan-listener" non-blocking-executor="infinispan-non-blocking" blocking-executor="infinispan-blocking" statistics="true" shutdown-hook="DONT_REGISTER" zero-capacity-node="false"> <transport cluster="maximal-cluster" lock-timeout="120000" stack="xsite" node-name="a-node" machine="a" rack="b" site="c" initial-cluster-size="1" initial-cluster-timeout="30000"> <property name="key">value</property> </transport> <!--security> <authorization audit-logger="org.infinispan.security.audit.NullAuditLogger"> <identity-role-mapper/> <roles> <role name="peasant" permissions="READ"/> <role name="vavasour" permissions="READ WRITE"/> <role name="vassal" permissions="READ WRITE LISTEN"/> <role name="king" permissions="ALL"/> </roles> </authorization> </security--> <serialization> <advanced-externalizer class="org.infinispan.quarkus.embedded.TestAdvancedExternalizer$IdViaConfigObj$Externalizer" id="9001" /> <advanced-externalizer class="org.infinispan.quarkus.embedded.TestAdvancedExternalizer$IdViaAnnotationObj$Externalizer" id="9002" /> <allow-list> <class>org.infinispan.test.data.Person</class> <regex>org.infinispan.test.data.*</regex> </allow-list> </serialization> <metrics gauges="true" histograms="true" accurate-size="true"/> <jmx enabled="true" domain="my-domain" mbean-server-lookup="org.infinispan.quarkus.embedded.CustomMBeanServerLookup"> <property name="key">value</property> </jmx> <global-state> <persistent-location path="quarkus-persistentPath" relative-to="java.io.tmpdir" /> <shared-persistent-location path="quarkus-sharedPath" relative-to="java.io.tmpdir" /> <temporary-location path="quarkus-tmpPath" relative-to="java.io.tmpdir" /> <overlay-configuration-storage /> </global-state> <local-cache name="local" statistics="true"> <encoding> <key media-type="application/x-java-object"/> <value media-type="application/x-java-object"/> </encoding> <locking acquire-timeout="30000" concurrency-level="2000" isolation="NONE" striping="true"/> <transaction mode="FULL_XA" stop-timeout="60000" locking="OPTIMISTIC" transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" complete-timeout="34000" reaper-interval="35000" auto-commit="true" /> <expiration interval="10000" lifespan="10000"/> <persistence passivation="true" availability-interval="2000" connection-attempts="5" connection-interval="100"> <file-store path="quarkus-persistentPath" shared="false" preload="true" purge="false"> <write-behind modification-queue-size="2048" fail-silently="true"/> <property name="test_property">foo_bar</property> </file-store> </persistence> </local-cache> <local-cache name="quarkus-transaction"> <transaction mode="FULL_XA" transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup"/> </local-cache> <invalidation-cache name="invalid" mode="SYNC" statistics="true"> <locking acquire-timeout="30500" concurrency-level="2500" isolation="READ_UNCOMMITTED" striping="true"/> <transaction mode="BATCH" stop-timeout="60500" locking="OPTIMISTIC"/> <expiration interval="10500" lifespan="11" max-idle="11"/> </invalidation-cache> <replicated-cache name="repl" mode="SYNC" statistics="true" segments="10" consistent-hash-factory="org.infinispan.distribution.ch.impl.SyncConsistentHashFactory" key-partitioner="org.infinispan.distribution.ch.impl.HashFunctionPartitioner"> <encoding> <key media-type="application/x-java-object"/> <value media-type="application/x-java-object"/> </encoding> <locking acquire-timeout="31000" concurrency-level="3000" isolation="SERIALIZABLE" striping="true"/> <transaction mode="BATCH" stop-timeout="61000" locking="PESSIMISTIC"/> <expiration interval="11000" lifespan="12" max-idle="12" touch="ASYNC"/> <memory storage="OBJECT" max-count="21000"/> <state-transfer enabled="false" timeout="60000" chunk-size="10000"/> </replicated-cache> <distributed-cache name="dist" mode="SYNC" l1-lifespan="1200000" owners="4" remote-timeout="35000" segments="2" statistics="true" consistent-hash-factory="org.infinispan.distribution.ch.impl.SyncConsistentHashFactory" key-partitioner="org.infinispan.distribution.ch.impl.HashFunctionPartitioner"> <backups max-cleanup-delay="60000" tombstone-map-size="128000"> <backup site="NYC" failure-policy="WARN" strategy="SYNC" timeout="12500"> <state-transfer chunk-size="600" timeout="2400000"/> </backup> <backup site="SFO" failure-policy="IGNORE" strategy="ASYNC" timeout="13000"> <state-transfer chunk-size="128" mode="AUTO"/> </backup> <backup site="LON" failure-policy="FAIL" strategy="SYNC" timeout="13500"> <take-offline after-failures="3" min-wait="10000"/> </backup> </backups> <backup-for remote-cache="users" remote-site="LON"/> <locking acquire-timeout="31500" concurrency-level="3500" isolation="READ_COMMITTED" striping="true"/> <transaction mode="FULL_XA" stop-timeout="61500" locking="OPTIMISTIC"/> <expiration interval="11500" lifespan="13" max-idle="13" touch="SYNC"/> <memory storage="OBJECT" max-count="21500"/> <partition-handling when-split="ALLOW_READS" merge-policy="PREFERRED_NON_NULL"/> <state-transfer enabled="true" timeout="60500" chunk-size="10500" /> </distributed-cache> <replicated-cache name="capedwarf-data" mode="SYNC"> <transaction mode="NON_XA"/> <persistence passivation="false"> <file-store preload="true" purge="false"/> </persistence> <memory storage="OBJECT"/> </replicated-cache> <replicated-cache name="capedwarf-metadata" mode="SYNC"> <transaction mode="NON_XA"/> <persistence passivation="true"> <store class="org.infinispan.quarkus.embedded.TestCacheLoader" segmented="false" /> </persistence> <memory storage="OBJECT"/> </replicated-cache> <replicated-cache name="capedwarf-memcache" mode="SYNC"> <transaction mode="NON_XA" locking="PESSIMISTIC"/> <memory storage="OBJECT"/> </replicated-cache> <distributed-cache name="capedwarf-default" mode="SYNC"> <transaction mode="NON_XA"/> <persistence passivation="true"> <file-store preload="true" purge="false"/> </persistence> <memory storage="OBJECT"/> </distributed-cache> <distributed-cache name="capedwarf-dist" mode="SYNC"> <transaction mode="NON_XA" locking="PESSIMISTIC"/> <persistence passivation="true"> <file-store preload="true" purge="false"/> </persistence> <memory storage="OBJECT"/> </distributed-cache> <distributed-cache name="capedwarf-tasks" mode="SYNC"> <transaction mode="NON_XA"/> <persistence passivation="true"> <file-store preload="true" purge="false"/> </persistence> <memory storage="OBJECT" max-count="10000"/> </distributed-cache> <replicated-cache name="HibernateSearch-LuceneIndexesMetadata" mode="SYNC"> <transaction mode="BATCH"/> <persistence passivation="true"> <file-store preload="true" purge="false"/> </persistence> <memory storage="OBJECT"/> </replicated-cache> <replicated-cache name="HibernateSearch-LuceneIndexesData" mode="SYNC"> <transaction mode="BATCH"/> <persistence passivation="true"> <file-store preload="true" purge="false"/> </persistence> <memory storage="OBJECT"/> </replicated-cache> <replicated-cache name="HibernateSearch-LuceneIndexesLocking" mode="SYNC"> <transaction mode="BATCH"/> <memory storage="OBJECT"/> </replicated-cache> <local-cache name="write-skew"> <locking isolation="REPEATABLE_READ"/> <transaction locking="OPTIMISTIC"/> </local-cache> <local-cache name="pojo-cache"> <encoding> <key media-type="application/x-java-object"/> <value media-type="application/x-java-object"/> </encoding> </local-cache> <local-cache name="simple-cache" simple-cache="true"> <transaction mode="NONE"/> <persistence> </persistence> </local-cache> <local-cache name="off-heap-memory"> <memory storage="OFF_HEAP" max-size="10000000" /> </local-cache> <local-cache name="binary-memory"> <memory storage="BINARY" max-size="1"/> </local-cache> <local-cache name="object-memory"> <memory storage="OBJECT"/> </local-cache> <local-cache name="minimal-offheap"> <memory storage="OFF_HEAP"/> </local-cache> <local-cache name="minimal-binary"> <memory storage="BINARY"/> </local-cache> <local-cache name="minimal-object"> <memory storage="OBJECT"/> </local-cache> <local-cache name="heap_object"> <memory max-count="1000"/> </local-cache> <local-cache name="heap_binary"> <encoding media-type="application/x-protostream"/> <memory storage="HEAP" max-size="1.5GB" when-full="REMOVE"/> </local-cache> <local-cache name="heap_binary_2"> <encoding> <key media-type="text/plain"/> <value media-type="text/plain"/> </encoding> <memory max-count="2000" when-full="REMOVE"/> </local-cache> <local-cache name="off_heap_no_eviction"> <memory storage="OFF_HEAP"/> </local-cache> <local-cache name="off_heap_eviction"> <memory storage="OFF_HEAP" when-full="REMOVE" max-count="1000"/> </local-cache> <!-- template configurations --> <local-cache-configuration name="local-template" statistics="true"> <locking acquire-timeout="30000" concurrency-level="2000" isolation="NONE" striping="true"/> <transaction mode="FULL_XA" stop-timeout="60000" locking="OPTIMISTIC" transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" complete-timeout="34000" reaper-interval="35000" auto-commit="true" /> <expiration interval="10000" lifespan="10" max-idle="10"/> <persistence passivation="true"> <file-store path="quarkus-persistentPath" shared="false" preload="true" purge="false"> <write-behind modification-queue-size="2048"/> </file-store> </persistence> <memory storage="OBJECT" max-count="20000"/> </local-cache-configuration> <local-cache name="local-instance" configuration="local-template"> <expiration interval="11000"/> </local-cache> <invalidation-cache-configuration name="invalidation-template" mode="SYNC" statistics="true"> <locking acquire-timeout="30500" concurrency-level="2500" isolation="READ_UNCOMMITTED" striping="true"/> <transaction mode="BATCH" stop-timeout="60500" locking="OPTIMISTIC"/> <expiration interval="10500" lifespan="11" max-idle="11"/> <memory storage="OBJECT" max-count="20500"/> </invalidation-cache-configuration> <invalidation-cache name="invalidation-instance" configuration="invalidation-template" /> <replicated-cache-configuration name="repl-template" mode="SYNC" statistics="true" segments="200" consistent-hash-factory="org.infinispan.distribution.ch.impl.SyncConsistentHashFactory" key-partitioner="org.infinispan.distribution.ch.impl.HashFunctionPartitioner"> <locking acquire-timeout="31000" concurrency-level="3000" isolation="SERIALIZABLE" striping="true"/> <transaction mode="BATCH" stop-timeout="61000" locking="PESSIMISTIC"/> <expiration interval="11000" lifespan="12" max-idle="12"/> <memory storage="OBJECT" max-count="21000"/> <state-transfer enabled="false" timeout="60000" chunk-size="10000" /> </replicated-cache-configuration> <replicated-cache name="repl-instance" configuration="repl-template"> <locking acquire-timeout="32000"/> </replicated-cache> <distributed-cache-configuration name="dist-template" mode="SYNC" l1-lifespan="1200000" owners="4" remote-timeout="35000" segments="2" statistics="true" consistent-hash-factory="org.infinispan.distribution.ch.impl.SyncConsistentHashFactory" key-partitioner="org.infinispan.distribution.ch.impl.HashFunctionPartitioner"> <backups> <backup site="NYC" failure-policy="WARN" strategy="SYNC" timeout="12500"> <state-transfer chunk-size="600" timeout="2400000"/> </backup> <backup site="SFO" failure-policy="IGNORE" strategy="ASYNC" timeout="13000"/> <backup site="LON" failure-policy="FAIL" strategy="SYNC" timeout="13500"> <take-offline after-failures="3" min-wait="10000"/> </backup> </backups> <backup-for remote-cache="users" remote-site="LON"/> <locking acquire-timeout="31500" concurrency-level="3500" isolation="READ_COMMITTED" striping="true"/> <transaction mode="FULL_XA" stop-timeout="61500" locking="OPTIMISTIC"/> <expiration interval="11500" lifespan="13" max-idle="13"/> <memory storage="OBJECT" max-count="21500" when-full="REMOVE"/> <partition-handling when-split="DENY_READ_WRITES" merge-policy="PREFERRED_ALWAYS"/> <state-transfer enabled="true" timeout="60500" chunk-size="10500" /> </distributed-cache-configuration> <distributed-cache name="dist-instance" configuration="dist-template" /> <distributed-cache name="jdbc"> <persistence> <jdbc:string-keyed-jdbc-store read-only="false" dialect="POSTGRES"> <cdi-data-source/> <jdbc:string-keyed-table create-on-start="true" prefix="ISPN_STRING_TABLE"> <jdbc:id-column name="ID_COLUMN" type="VARCHAR(255)"/> <jdbc:data-column name="DATA_COLUMN" type="BYTEA"/> <jdbc:timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/> <jdbc:segment-column name="SEGMENT_COLUMN" type="BIGINT"/> </jdbc:string-keyed-table> </jdbc:string-keyed-jdbc-store> </persistence> </distributed-cache> <distributed-cache name="sql-query"> <encoding media-type="application/x-protostream"/> <persistence> <sql:query-jdbc-store read-only="false" purge="false" dialect="POSTGRES" key-columns="keycolumn"> <cdi-data-source/> <sql:queries select-all="SELECT keycolumn, value FROM books" select-single="SELECT keycolumn, value FROM books WHERE keycolumn = :keycolumn" delete-all="DELETE FROM books" delete-single="DELETE FROM books WHERE keycolumn = :keycolumn" upsert="INSERT INTO books (keycolumn, value) VALUES (:keycolumn, :value) ON CONFLICT DO NOTHING" size="SELECT COUNT(*) FROM books"/> </sql:query-jdbc-store> </persistence> </distributed-cache> </cache-container> </infinispan>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy