add debug logging
This commit is contained in:
parent
5b8dac3dd7
commit
a11c7beef8
|
@ -105,6 +105,8 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
|
|||
|
||||
this.initialPingTimeout = componentSettings.getAsTime("initial_ping_timeout", timeValueSeconds(3));
|
||||
|
||||
logger.debug("Using initial_ping_timeout [{}]", initialPingTimeout);
|
||||
|
||||
this.electMaster = new ElectMasterService(settings);
|
||||
|
||||
this.masterFD = new MasterFaultDetection(settings, threadPool, transportService, this);
|
||||
|
|
|
@ -88,6 +88,8 @@ public class MasterFaultDetection extends AbstractComponent {
|
|||
this.pingRetryTimeout = componentSettings.getAsTime("ping_timeout", timeValueSeconds(6));
|
||||
this.pingRetryCount = componentSettings.getAsInt("ping_retries", 5);
|
||||
|
||||
logger.debug("Master FD uses ping_interval [{}], ping_timeout [{}], ping_retries [{}]", pingInterval, pingRetryTimeout, pingRetryCount);
|
||||
|
||||
this.connectionListener = new FDConnectionListener();
|
||||
transportService.addConnectionListener(connectionListener);
|
||||
|
||||
|
|
|
@ -84,6 +84,8 @@ public class NodesFaultDetection extends AbstractComponent {
|
|||
this.pingRetryTimeout = componentSettings.getAsTime("ping_timeout", timeValueSeconds(6));
|
||||
this.pingRetryCount = componentSettings.getAsInt("ping_retries", 5);
|
||||
|
||||
logger.debug("Nodes FD uses ping_interval [{}], ping_timeout [{}], ping_retries [{}]", pingInterval, pingRetryTimeout, pingRetryCount);
|
||||
|
||||
transportService.registerHandler(PingRequestHandler.ACTION, new PingRequestHandler());
|
||||
|
||||
this.connectionListener = new FDConnectionListener();
|
||||
|
|
|
@ -112,6 +112,8 @@ public class MulticastZenPing extends AbstractLifecycleComponent<ZenPing> implem
|
|||
this.bufferSize = componentSettings.getAsInt("buffer_size", 2048);
|
||||
this.ttl = componentSettings.getAsInt("ttl", 3);
|
||||
|
||||
logger.debug("Using group [{}], with port [{}], ttl [{}], and address [{}]", group, port, ttl, address);
|
||||
|
||||
this.transportService.registerHandler(MulticastPingResponseRequestHandler.ACTION, new MulticastPingResponseRequestHandler());
|
||||
}
|
||||
|
||||
|
|
|
@ -94,6 +94,9 @@ public class UnicastZenPing extends AbstractLifecycleComponent<ZenPing> implemen
|
|||
if (componentSettings.get("hosts") != null) {
|
||||
hosts.addAll(Strings.commaDelimitedListToSet(componentSettings.get("hosts")));
|
||||
}
|
||||
|
||||
logger.debug("Using hosts ", hosts);
|
||||
|
||||
List<DiscoveryNode> nodes = Lists.newArrayList();
|
||||
int idCounter = 0;
|
||||
for (String host : hosts) {
|
||||
|
|
Loading…
Reference in New Issue