Enter code here...
final VertxOptions options = new VertxOptions().setClusterManager(clusterManager);
if (Switches.isInContainer) {
logger.info("This node is running in a container with hostname ->"+info.getHostName()+" on port ->"+CONTAINER_PORT);
options.setClusterPublicHost(info.getHostName());
options.setClusterPublicPort(CONTAINER_PORT);
}
The cluster Manager is using Atomix and it is finding Atomix properly and working properly.
Is there any way to diagnose what is happening?
if(clusterHostname != null && !clusterHostname.isEmpty())
clusterHostname = InetAddress.getByName(clusterHostname).getHostAddress();
else
clusterHostname = InetAddress.getLocalHost().getHostAddress();
opts.setClusterManager(mgr);
opts.setClusterPort(clusterPort);
opts.setClusterHost(clusterHostname);
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/87cb386a-37c6-4294-acda-00d64ea571b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.