JGroups Protocol TCPPING: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:


* [[JGroups#Protocols|JGroups]]
* [[JGroups#Protocols|JGroups]]
=Overview=
A discovery protocol that retrieves the initial membership by connecting directly over TCP connections to statically configured members and sending point-to-point membership requests. The responses are intended to allow the member to determine the coordinator it needs to contact, in order to join the group.
The protocol initiates initial member discovery upon receiving [[JGroups Protocol GMS|GMS]]' FIND_INITIAL_MBRS event.
!!!Configuration Sample
{{{
    <TCPPING initial_hosts="hosta[2300],hostb[3400],hostc[4500]"
            port_range="3"
            timeout="3000"
            num_initial_members="2"/>
}}}
!!!Configuration
!!initial_hosts
Comma delimited list of hosts to be contacted for initial membership. The list can be incomplete, as long as at least one of the live members of the group will be included.
Each element consists in the IP address (or resolvable host name) and the TCP transport layer port, specified between brackets.
!!num_initial_members
Minimum number of initial members to get a response from. Default is 2.
!!port_range
Number of ports to be probed for initial membership. Default is 1.
!!timeout
Timeout to wait for the initial members. Default is 3000 ms.
__Referenced by:__\\
[{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]

Revision as of 04:16, 4 March 2016

External

Internal

Overview

A discovery protocol that retrieves the initial membership by connecting directly over TCP connections to statically configured members and sending point-to-point membership requests. The responses are intended to allow the member to determine the coordinator it needs to contact, in order to join the group.

The protocol initiates initial member discovery upon receiving GMS' FIND_INITIAL_MBRS event.


!!!Configuration Sample

{{{

   <TCPPING initial_hosts="hosta[2300],hostb[3400],hostc[4500]"
            port_range="3"
            timeout="3000"
            num_initial_members="2"/>

}}}

!!!Configuration

!!initial_hosts

Comma delimited list of hosts to be contacted for initial membership. The list can be incomplete, as long as at least one of the live members of the group will be included.

Each element consists in the IP address (or resolvable host name) and the TCP transport layer port, specified between brackets.

!!num_initial_members

Minimum number of initial members to get a response from. Default is 2.

!!port_range

Number of ports to be probed for initial membership. Default is 1.

!!timeout

Timeout to wait for the initial members. Default is 3000 ms.

__Referenced by:__\\ [{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]