use of com.hazelcast.internal.diagnostics.NetworkingImbalancePlugin in project hazelcast by hazelcast.
the class HazelcastClientInstanceImpl method start.
public void start() {
try {
lifecycleService.start();
startMetrics();
invocationService.start();
ClientContext clientContext = new ClientContext(this);
userCodeDeploymentService.start();
Collection<EventListener> configuredListeners = instantiateConfiguredListenerObjects();
clusterService.start(configuredListeners);
clientClusterViewListenerService.start();
connectionManager.start();
startHeartbeat();
startIcmpPing();
connectionManager.connectToCluster();
diagnostics.start();
// static loggers at beginning of file
diagnostics.register(new BuildInfoPlugin(loggingService.getLogger(BuildInfoPlugin.class)));
diagnostics.register(new ConfigPropertiesPlugin(loggingService.getLogger(ConfigPropertiesPlugin.class), properties));
diagnostics.register(new SystemPropertiesPlugin(loggingService.getLogger(SystemPropertiesPlugin.class)));
// periodic loggers
diagnostics.register(new MetricsPlugin(loggingService.getLogger(MetricsPlugin.class), metricsRegistry, properties));
diagnostics.register(new SystemLogPlugin(properties, connectionManager, this, loggingService.getLogger(SystemLogPlugin.class)));
diagnostics.register(new NetworkingImbalancePlugin(properties, connectionManager.getNetworking(), loggingService.getLogger(NetworkingImbalancePlugin.class)));
diagnostics.register(new EventQueuePlugin(loggingService.getLogger(EventQueuePlugin.class), listenerService.getEventExecutor(), properties));
metricsRegistry.provideMetrics(listenerService);
ClientConnectionStrategyConfig connectionStrategyConfig = config.getConnectionStrategyConfig();
boolean asyncStart = connectionStrategyConfig.isAsyncStart();
if (!asyncStart) {
waitForInitialMembershipEvents();
}
connectionManager.tryConnectToAllClusterMembers(!asyncStart);
listenerService.start();
proxyManager.init(config, clientContext);
invocationService.addBackupListener();
loadBalancer.init(getCluster(), config);
clientStatisticsService.start();
clientExtension.afterStart(this);
cpSubsystem.init(clientContext);
addClientConfigAddedListeners(configuredListeners);
sendStateToCluster();
} catch (Throwable e) {
try {
lifecycleService.terminate();
} catch (Throwable t) {
ignore(t);
}
throw rethrow(e);
}
}
use of com.hazelcast.internal.diagnostics.NetworkingImbalancePlugin in project hazelcast by hazelcast.
the class DefaultNodeExtension method registerPlugins.
@Override
public void registerPlugins(Diagnostics diagnostics) {
final NodeEngineImpl nodeEngine = node.nodeEngine;
// static loggers at beginning of file
diagnostics.register(new BuildInfoPlugin(nodeEngine));
diagnostics.register(new SystemPropertiesPlugin(nodeEngine));
diagnostics.register(new ConfigPropertiesPlugin(nodeEngine));
// periodic loggers
diagnostics.register(new OverloadedConnectionsPlugin(nodeEngine));
diagnostics.register(new EventQueuePlugin(nodeEngine, ((EventServiceImpl) nodeEngine.getEventService()).getEventExecutor()));
diagnostics.register(new PendingInvocationsPlugin(nodeEngine));
diagnostics.register(new MetricsPlugin(nodeEngine));
diagnostics.register(new SlowOperationPlugin(nodeEngine));
diagnostics.register(new InvocationSamplePlugin(nodeEngine));
diagnostics.register(new InvocationProfilerPlugin(nodeEngine));
diagnostics.register(new OperationProfilerPlugin(nodeEngine));
diagnostics.register(new MemberHazelcastInstanceInfoPlugin(nodeEngine));
diagnostics.register(new SystemLogPlugin(nodeEngine));
diagnostics.register(new StoreLatencyPlugin(nodeEngine));
diagnostics.register(new MemberHeartbeatPlugin(nodeEngine));
diagnostics.register(new NetworkingImbalancePlugin(nodeEngine));
diagnostics.register(new OperationHeartbeatPlugin(nodeEngine));
diagnostics.register(new OperationThreadSamplerPlugin(nodeEngine));
}
Aggregations