Apache Ignite 拓扑快照刷新 .Net

Apache Ignite Topology Snapshot refreshed .Net

我启动了 Apache Ingnite 节点、一个服务器节点和另一个客户端节点。

我的场景是:关闭客户端节点,同时更新服务节点Topology Snapshot。

现在,拓扑快照只有在 20 秒后服务器收到 NodeFailed 事件时才会刷新。

服务器端有什么方法或配置可以立即收到NodeFailed事件或刷新Topology Snapshot?

这是服务器日志:

[09:08:50,522][WARNING][disco-event-worker-#45%ignite-instance-f69c161b-9f38-4576-b52b-ef3077ba3156%][GridDiscoveryManager] Node FAILED: TcpDiscoveryNode [id=5f346db2-50fd-4d83-b518-a09690569274, consistentId=5f346db2-50fd-4d83-b518-a09690569274, addrs=ArrayList [0:0:0:0:0:0:0:1, 127.0.0.1, 192.168.40.1, 192.168.50.135, 192.168.65.1], sockAddrs=HashSet [DESKTOP-1BLUS7R/192.168.40.1:0, /[0:0:0:0:0:0:0:1]:0, /127.0.0.1:0, /192.168.65.1:0, /192.168.50.135:0], discPort=0, order=3, intOrder=3, lastExchangeTime=1602810475243, loc=false, ver=2.8.1#20200521-sha1:86422096, isClient=true]
[09:08:50,525][INFO][disco-event-worker-#45%ignite-instance-f69c161b-9f38-4576-b52b-ef3077ba3156%][GridDiscoveryManager] Topology snapshot [ver=5, locNode=f6d3f760, servers=1, clients=0, state=ACTIVE, CPUs=6, offheap=1.5GB, heap=2.0GB]
[09:08:50,525][INFO][disco-event-worker-#45%ignite-instance-f69c161b-9f38-4576-b52b-ef3077ba3156%][GridDiscoveryManager]   ^-- Baseline [id=0, size=1, online=1, offline=0]

[

可以减少服务节点属性ClientFailureDetectionTimeout,增加服务端检查客户端节点的频率。The default is 30 seconds

//
// 摘要:
//Gets or sets the failure detection timeout used by Apache.Ignite.Core.Discovery.Tcp.TcpDiscoverySpi
//and Apache.Ignite.Core.Communication.Tcp.TcpCommunicationSpi for client nodes.
[DefaultValue(typeof(TimeSpan), "00:00:30")]
public TimeSpan ClientFailureDetectionTimeout { get; set; }