Hi Ben, thanks for your answer but could you please clarify this sentence 

"There isn't any reason that ovn-northd needs to connect to northbound and 
southbound databases simultaneously." 

How would it work then? My understanding is that ovn-northd translates data 
from Northbound to Southbound dbs as well as propagates some changes backwards 
like port status. If it only connects to one end, say Southbound, then how does 
it work?



     


Arkadi Poliakevitch | Enterprise Applications
e. [email protected]
w. timbredigital.co.nz |  | 

timbre Digital is the trading name of Push Digital Limited, company 
registration number 6009928. This email and any attachment to it are 
confidential. Unless you are the intended recipient, you may not use, copy or 
disclose either the message or any information contained in the message. If you 
are not the intended recipient, you should delete this email and notify the 
sender immediately. Any views or opinions expressed in this email are those of 
the sender only, unless otherwise stated. All copyright in any of the material 
in this email is reserved. All emails, incoming and outgoing, may be recorded 
and monitored for legitimate business purposes. We exclude all liability for 
any loss or damage arising or resulting from the receipt, use or transmission 
of this email to the fullest extent permitted by law.


-----Original Message-----
From: Ben Pfaff <[email protected]> 
Sent: Tuesday, May 25, 2021 5:40 AM
To: Arkadi Poliakevitch <[email protected]>
Cc: [email protected]
Subject: Re: [ovs-discuss] OVN cluster: how to ensure that both northbound and 
southbound instances are leaders on the same node?

On Mon, May 24, 2021 at 06:49:56AM +0000, Arkadi Poliakevitch wrote:
> I'm recently puzzled at the situation when northbound ovsdb-server is 
> the leader on one cluster node but the southbound ovsdb-server is the 
> leader on the other node. My understanding is that the same ovn-northd 
> instance should connect to both northbound and southbound sockets at 
> the same time in order to function properly, which is not the case. 
> One ovn-northd instance locks the connection to the southbound leader 
> and the other ovn-northd instance - to the northbound leader, which 
> makes no sense, of course. Any thoughts on this?

The northbound and southbound databases are independent.  There is no need for 
them to have the same cluster nodes.  They don't even necessarily both have to 
be clustered databases.

There isn't any reason that ovn-northd needs to connect to northbound and 
southbound databases simultaneously.  In fact, the idea of simultaneity in a 
distributed system is problematic.

ovn-northd only locks the connection to the southbound database.
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to