tcp.xml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!--
  2. TCP based stack, with flow control and message bundling. This is usually used when IP
  3. multicasting cannot be used in a network, e.g. because it is disabled (routers discard multicast).
  4. Note that TCP.bind_addr and TCPPING.initial_hosts should be set, possibly via system properties, e.g.
  5. -Djgroups.bind_addr=192.168.5.2 and -Djgroups.tcpping.initial_hosts=192.168.5.2[7800]
  6. author: Bela Ban
  7. version: $Id: tcp.xml,v 1.40 2009/12/18 09:28:30 belaban Exp $
  8. -->
  9. <config xmlns="urn:org:jgroups"
  10. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-2.8.xsd">
  12. <TCP bind_port="${jgroups.bind_port}"
  13. loopback="true"
  14. recv_buf_size="${tcp.recv_buf_size:20M}"
  15. send_buf_size="${tcp.send_buf_size:640K}"
  16. discard_incompatible_packets="true"
  17. max_bundle_size="64K"
  18. max_bundle_timeout="30"
  19. enable_bundling="true"
  20. use_send_queues="true"
  21. sock_conn_timeout="300"
  22. timer.num_threads="4"
  23. level="all"
  24. thread_pool.enabled="true"
  25. thread_pool.min_threads="1"
  26. thread_pool.max_threads="10"
  27. thread_pool.keep_alive_time="5000"
  28. thread_pool.queue_enabled="false"
  29. thread_pool.queue_max_size="100"
  30. thread_pool.rejection_policy="discard"
  31. oob_thread_pool.enabled="true"
  32. oob_thread_pool.min_threads="1"
  33. oob_thread_pool.max_threads="8"
  34. oob_thread_pool.keep_alive_time="5000"
  35. oob_thread_pool.queue_enabled="false"
  36. oob_thread_pool.queue_max_size="100"
  37. oob_thread_pool.rejection_policy="discard"/>
  38. <TCPGOSSIP initial_hosts="${jgroups.tcpping.initial_hosts}" gossip_refresh_rate="10000"
  39. num_initial_members="3" />
  40. <MERGE2 min_interval="10000"
  41. max_interval="30000"/>
  42. <FD_SOCK />
  43. <FD timeout="15000" max_tries="3" />
  44. <VERIFY_SUSPECT timeout="15000" />
  45. <BARRIER />
  46. <pbcast.NAKACK
  47. use_mcast_xmit="false" gc_lag="0"
  48. retransmit_timeout="300,600,1200,2400,4800"
  49. discard_delivered_msgs="true"/>
  50. <UNICAST timeout="300,600,1200" />
  51. <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
  52. max_bytes="400K"/>
  53. <AUTH auth_class="org.jgroups.auth.X509Token"
  54. auth_value="vtalk-sms-process"
  55. keystore_path="../etc/sms_process.jks"
  56. keystore_password="sms123"
  57. cert_alias="vtalkprocess"
  58. cert_password="sms123"
  59. cipher_type="RSA"></AUTH>
  60. <pbcast.GMS print_local_addr="true" join_timeout="3000"
  61. disable_initial_coord="false"
  62. view_bundling="true"/>
  63. <FC max_credits="2M"
  64. min_threshold="0.10"/>
  65. <FRAG2 frag_size="60K" />
  66. <pbcast.STREAMING_STATE_TRANSFER/>
  67. <!-- <pbcast.STATE_TRANSFER/> -->
  68. </config>