所有应用程序在日志中都有一个事件-已注册。当通过上述配置启用Hazelcast时,在Wallboard和Applications屏幕上,它们的状态仍然为Down。
Hazelcast:v3.11 春季启动管理员:v2.0.2
当我单击应用程序并打开“信息”时,状态显示为UP。我是否缺少任何配置?
@Bean
public Config hazelcast() {
NetworkConfig networkConfig = new NetworkConfig();
JoinConfig join = networkConfig.getJoin();
join.getMulticastConfig().setEnabled(false);
join.getTcpIpConfig().addMember("127.0.0.1").setEnabled(true);
GroupConfig groupConfig = new GroupConfig("app-monitoring-dev");
MapConfig mapConfig = new MapConfig("app-monitoring")
.setBackupCount(1)
.setEvictionPolicy(EvictionPolicy.NONE);
ListConfig listConfig = new ListConfig("app-monitoring-event-store")
.setBackupCount(1)
.setMaxSize(1000);
return new Config()
.setProperty("hazelcast.jmx", "true")
.setNetworkConfig(networkConfig)
.setGroupConfig(groupConfig)
.addMapConfig(mapConfig)
.addListConfig(listConfig);
}
当我删除上述Hazelcast配置时,一切正常。