>On 4/26/23 09:04, wangchuanlei wrote: >>> Hi, >> >>> On 4/21/23 08:17, wangchuanlei via discuss wrote: >>>> I have one center and serveral node, and all nodes are connected >>>> to center with options ovn-remote=tcp:192.168.0.x:6642, when one >>>> node lost connection to center, the commands "ovn-sbctl list >>>> chassis" still see the node. >>>> How can i know the node is offline in northd? >> >>> One option is to write to the NB_Global.nb_cfg column. This should get >>> reflected to all Chassis_private.nb_cfg columns (for each chassis) when the >>> chassis processed the NB update. >> >> --In normal case, if the node changed is database, NB_Glocal will >> change nb_nfg,.But, on my enviroment , i reboot the node, the center did't >> knew this event, and the nb_cfg did't changed. >> Is there have any other ways to know the node is offline? >>
>The "NB_Global.nb_cfg -> SB.SB_Global.nb_cfg -> ovn-controllers -> >SB.Chassis_private.hv_cfg" synchronization mechanism can be used to detect if >a given node is offline at the moment when we're writing to the NB database. >It won't detect a reboot that happened in the past. Yes, may be we need a better way to detect it, thanks a lot! Regards, Wangchuanlei _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
