客户端掉线重连到新的broker节点,原节点上的连接或会话会怎样?

emqx5.3.2集群,前置负载为轮询策略,非粘性会话场景,如果客户端(clientid不变)掉线重连到新的broker节点,之前旧节点上的会话(如开启了持久会话)或半连接会如何处理?会跨节点将原来的会话或连接踢下线吗?

旧节点上的会话(如开启了持久会话)或半连接会如何处理?

会被强制关闭。

会跨节点将原来的会话或连接踢下线吗?

会的:
node0 日志:
msg: emqx_connection_terminated, reason: {shutdown,takenover}

2023-12-25T06:49:51.419501+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:24486 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=mqttx_d0db8d89, ProtoName=MQTT, ProtoVsn=5, CleanStart=false, KeepAlive=60, Username=undefined, Password=)
2023-12-25T06:49:51.420366+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:24486 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-12-25T06:49:51.492367+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:24486 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=33627 TopicFilters=[testtopic/#(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2023-12-25T06:49:51.492523+00:00 [AUTHZ] mqttx_d0db8d89@172.17.0.1:24486 msg: authorization_module_nomatch, ipaddr: {172,17,0,1}, module: emqx_authz_client_info, pub_sub: [action_type: subscribe, qos: 0], topic: testtopic/#, username: undefined
2023-12-25T06:49:51.492585+00:00 [SUBSCRIBE] mqttx_d0db8d89@172.17.0.1:24486 msg: subscribe, sub_id: mqttx_d0db8d89, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: []], topic: testtopic/#
2023-12-25T06:49:51.492738+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:24486 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=33627, ReasonCodes=[0])
2023-12-25T06:49:55.759790+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:24486 msg: mqtt_packet_received, packet: DISCONNECT(Q0, R0, D0, ReasonCode=0)
2023-12-25T06:49:55.759893+00:00 [SOCKET] mqttx_d0db8d89@172.17.0.1:24486 msg: socket_force_closed, reason: normal
2023-12-25T06:50:07.408934+00:00 [UNSUBSCRIBE] mqttx_d0db8d89@172.17.0.1:24486 msg: unsubscribe, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: [], subid: mqttx_d0db8d89], topic: testtopic/#
2023-12-25T06:50:07.409117+00:00 [SOCKET] mqttx_d0db8d89@172.17.0.1:24486 msg: emqx_connection_terminated, reason: {shutdown,takenover}

node1 日志:

2023-12-25T06:50:07.407829+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:64472 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=mqttx_d0db8d89, ProtoName=MQTT, ProtoVsn=5, CleanStart=false, KeepAlive=60, Username=undefined, Password=)
2023-12-25T06:50:07.408514+00:00 [SUBSCRIBE] mqttx_d0db8d89@172.17.0.1:64472 msg: subscribe, sub_id: mqttx_d0db8d89, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: []], topic: testtopic/#
2023-12-25T06:50:07.409631+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:64472 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=1, ReasonCode=0)
2023-12-25T06:50:07.482135+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:64472 msg: mqtt_packet_received, packet: SUBSCRIBE(Q1, R0, D0, PacketId=31358 TopicFilters=[testtopic/#(#{nl => 0,qos => 0,rap => 0,rh => 0})])
2023-12-25T06:50:07.482280+00:00 [AUTHZ] mqttx_d0db8d89@172.17.0.1:64472 msg: authorization_module_nomatch, ipaddr: {172,17,0,1}, module: emqx_authz_client_info, pub_sub: [action_type: subscribe, qos: 0], topic: testtopic/#, username: undefined
2023-12-25T06:50:07.482340+00:00 [SUBSCRIBE] mqttx_d0db8d89@172.17.0.1:64472 msg: subscribe, sub_id: mqttx_d0db8d89, sub_opts: [nl: 0, qos: 0, rap: 0, rh: 0, sub_props: []], topic: testtopic/#
2023-12-25T06:50:07.482408+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:64472 msg: mqtt_packet_sent, packet: SUBACK(Q0, R0, D0, PacketId=31358, ReasonCodes=[0])
2023-12-25T06:50:53.367490+00:00 [MQTT] mqttx_d0db8d89@172.17.0.1:64472 msg: mqtt_packet_received, packet: DISCONNECT(Q0, R0, D0, ReasonCode=0)
2023-12-25T06:50:53.367613+00:00 [SOCKET] mqttx_d0db8d89@172.17.0.1:64472 msg: socket_force_closed, reason: normal