groups.5.3.11.Final.source-code.jdbc-pg.xml Maven / Gradle / Ivy
<!-- JDBC_PING2 for Postgresql --> <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:site_local}" bind_port="${jgroups.bind_port:7800}" port_range="50" recv_buf_size="150000" send_buf_size="640000" sock_conn_timeout="300ms" /> <!-- Uncomment attributes 'insert_sp' and 'call_insert_sp' if you want to use stored procedures --> <JDBC_PING2 connection_driver="org.postgresql.Driver" connection_url="jdbc:postgresql://localhost:5432/bela" connection_username="bela" connection_password="secret" remove_all_data_on_view_change="true" register_shutdown_hook="true" return_entire_cache="false" <!-- insert_sp="CREATE PROCEDURE deleteAndInsert (addr varchar(200), name varchar(200), cluster varchar(200), ip varchar(200), coord boolean) LANGUAGE SQL BEGIN ATOMIC 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="40s" interval="5s" /> <VERIFY_SUSPECT2 /> <pbcast.NAKACK2 use_mcast_xmit="false" xmit_interval="500ms"/> <UNICAST3 xmit_interval="500ms"/> <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="2M" min_threshold="0.40"/> <MFC max_credits="2M" min_threshold="0.4"/> <FRAG3 frag_size="60000" /> <pbcast.STATE_TRANSFER/> </config>