All Downloads are FREE. Search and download functionalities are using the official Maven repository.

groups.5.3.11.Final.source-code.jdbc-mysql.xml Maven / Gradle / Ivy

There is a newer version: 5.3.13.Final
Show newest version
<!--
   JDBC_PING2 for MySql
-->
<config xmlns="urn:org:jgroups"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">
    <TCP
            bind_addr="${jgroups.bind_addr:match-address:192.168.1.110}"
            bind_port="${jgroups.bind_port:7800}"
            port_range="50"
            recv_buf_size="150000"
            send_buf_size="640000"
            sock_conn_timeout="300ms"
            thread_pool.enabled="true"
            thread_pool.min_threads="1"
            thread_pool.max_threads="50"
            thread_pool.keep_alive_time="60s"
    />

    <!-- Uncomment attributes 'insert_sp' and 'call_insert_sp' if you want to use stored procedures -->
    <JDBC_PING2
            connection_driver="com.mysql.cj.jdbc.Driver"
            connection_url="jdbc:mysql://localhost/test"
            connection_username="bela"
            connection_password="password"
            remove_all_data_on_view_change="true"
            register_shutdown_hook="true"
            return_entire_cache="false"
            <!--
            insert_sp="CREATE PROCEDURE deleteAndInsert
                         (IN addr varchar(200), IN name varchar(200), IN cluster varchar(200),
                          IN ip varchar(200), IN coord boolean)
                         BEGIN
                           DELETE FROM jgroups WHERE address = addr;
                           INSERT INTO jgroups VALUES (addr, name, cluster, ip, coord);
                         END"
            call_insert_sp="call deleteAndInsert(?,?,?,?,?);"
            -->
    />
    <MERGE3 min_interval="10000"
            max_interval="30000"/>
    <FD_SOCK2/>
    <FD_ALL3 timeout="40000" interval="5000" />
    <VERIFY_SUSPECT2 />
    <pbcast.NAKACK2
            use_mcast_xmit="false"
            xmit_interval="100"/>
    <UNICAST3
            xmit_interval="100"/>
    <pbcast.STABLE
            desired_avg_gossip="5s"
            max_bytes="1000000"/>
    <pbcast.GMS
            print_local_addr="false"
            join_timeout="1s"
            max_join_attempts="1"/>
    <UFC max_credits="2000000"
         min_threshold="0.40"/>
    <MFC max_credits="2000000"
         min_threshold="0.4"/>
    <FRAG3 frag_size="60000"  />
    <pbcast.STATE_TRANSFER/>
</config>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy