Hi I have two instances that have been configured in a hazelcast cluster.
I have also configured the vertexOptions (clustered, clusterHost and clusterPort)
On each instance i have one verticle (A) with a consumer listening on a topic to provide prices
On each instance I have one http verticle (B) that calls vertx.eventBus().send(...) and one of the above verticles will respond with a price.
When i shutdown one of the instances and hit the http endpoint on the other instance - I would of expected the verticle (A) that is still running on the same instance to pick up the event and respond.
Instead I get the two exceptions =>
io.vertx.core.eventbus.ReplyException: Timed out after waiting 500(ms) for a reply. address: 1f6b27e9-b567-4531-b341-df44a47e5efb, repliedAddress: blah.blah.price
and
Oct 17, 2018 5:17:23 PM io.vertx.core.eventbus.impl.clustered.ConnectionHolder
WARNING: Connecting to server localhost:61588 failed
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/
127.0.0.1:61588
port 61588 is the other instance port that had been configured for 'clusterPort' in the VertxOptions.
I'm trying to test the resilience of a cluster in case that one instance dies unexpectedly or is shutdown for an upgrade.
Any advice?
Thanks.