@@ -10,8 +10,6 @@ Discovery is therefore done by asking Kubernetes for a list of IP addresses of a
1010Combined with `bind_port` / `port_range`, the protocol will then send a discovery request to all instances and wait for
1111the responses.
1212
13- This is done by superclass `TCPPING` (see http://www.jgroups.org/manual4/index.html#TCPPING_Prot for details).
14-
1513A sample configuration looks like this:
1614
1715.Sample KUBE_PING config
@@ -39,9 +37,8 @@ launched into the same namespace and without any (or the same) labels).
3937On a discovery request, Kubernetes returns list of 3 IP addresses. JGroups now knows that the ports have been
4038allocated from range [`7800` .. `7801`] (`bind_port` .. (`bind_port` + `port_range`) in `TCP`).
4139
42- It therefore adds addresses `172.17.0.2:7800`, `172.17.0.2:7801`, `172.17.0.3:7800`, `172.17.0.3:7801`, `172.17.0.5:7800`
43- and `172.17.0.5:7801` to `initial_hosts` in superclass `TCPPING` and lets `TCPPING` run the discovery. This is done
44- by sending each of the addresses in `initial_hosts` a discovery request and waiting for responses.
40+ KUBE_PING therefore sends discovery requests to members at addresses `172.17.0.2:7800`, `172.17.0.2:7801`, `172.17.0.3:7800`,
41+ `172.17.0.3:7801`, `172.17.0.5:7800` and `172.17.0.5:7801`.
4542
4643
4744== Separating different clusters
@@ -131,6 +128,10 @@ namespace `"default"` will be returned.
131128|===============
132129|Attribute name|Description
133130
131+ |port_range|Number of additional ports to be probed for membership. A port_range of 0 does not
132+ probe additional ports. Example: `initial_hosts=A[7800] port_range=0` probes `A:7800`, `port_range=1`
133+ probes `A:7800` and `A:7801`
134+
134135|connectTimeout|Max time (in millis) to wait for a connection to the Kubernetes server. If exceeded, an exception
135136will be thrown
136137
@@ -199,7 +200,7 @@ items:
199200 spec:
200201 containers:
201202 - args:
202- - /opt/jgroups/IspnPerfTest/bin/kube-debug .sh
203+ - /opt/jgroups/IspnPerfTest/bin/kube.sh
203204 - -nohup
204205 env:
205206 - name: KUBERNETES_NAMESPACE
0 commit comments