0
即時消息與我的兩個垂直,我想在聚集模式下啓動。頂點:爲什麼沒有聚集的垂直頂點?
這裏是我的兩個verticles的啓動方法:
首先Verticle:
public static void main(String[] args) {
VertxOptions options = new VertxOptions();
options.setClustered(true);
options.setClusterManager(new HazelcastClusterManager());
Vertx.clusteredVertx(options, res -> {
Vertx vertx = res.result();
vertx.deployVerticle(new WalzenSchnittBlMock());
});
}
二Verticle:
public void start() {
VertxOptions options = new VertxOptions();
Vertx.clusteredVertx(options, res -> {
vertx = res.result();
vertx.deployVerticle(serviceVerticle, this::completeRegister);
});
}
Thhis 2個verticles駐留在不同的機器,但他們做的不是「看到」彼此,雖然有集羣模式....是否有任何問題..我錯過了什麼?
您是否啓用了Hezelcast日誌記錄?我會從那裏開始:http://vertx.io/docs/vertx-hazelcast/java/#_enabling_logging –
我同意啓用日誌記錄。您也可能檢查防火牆規則。兩臺機器都在同一個網絡上嗎? – dbh