Re: [ovs-discuss] OVN: ovn-sbctl backoff

2020-07-23 Thread Tony Liu
Appreciate it! You connected dots for me. Tony From: Han Zhou Sent: July 23, 2020 05:10 PM To: Tony Liu Cc: Han Zhou ; ovs-discuss Subject: Re: [ovs-discuss] OVN: ovn-sbctl backoff On Thu, Jul 23, 2020 at 4:34 PM mailto:tonyliu0...@hotmail.com>>

Re: [ovs-discuss] OVN: ovn-sbctl backoff

2020-07-23 Thread Han Zhou
On Thu, Jul 23, 2020 at 4:34 PM wrote: > > Good to know! I recall I read somewhere saying only the leader takes write request. I will double check! > > Well, in that case, I have another question, why is such leader role required? In a quorum based cluster, all nodes are equal. And why does

Re: [ovs-discuss] OVN: ovn-sbctl backoff

2020-07-23 Thread tonyliu0592
Good to know! I recall I read somewhere saying only the leader takes write request. I will double check!Well, in that case, I have another question, why is such leader role required? In a quorum based cluster, all nodes are equal. And why does ovn-northd have to connect to the leader?Guess I will

Re: [ovs-discuss] OVN: ovn-sbctl backoff

2020-07-23 Thread Han Zhou
On Thu, Jul 23, 2020 at 4:07 PM wrote: > > Thanks Han for the prompt responses! > That option is ok for reading. If I want to write, I have to connect to the leader, right? Then my question remains, how does ovn-sbctl find out how to connect to the leader? > RAFT doesn't require you to connect

Re: [ovs-discuss] OVN: ovn-sbctl backoff

2020-07-23 Thread tonyliu0592
Thanks Han for the prompt responses!That option is ok for reading. If I want to write, I have to connect to the leader, right? Then my question remains, how does ovn-sbctl find out how to connect to the leader?Thanks again!TonyOn Jul 23, 2020 3:57 PM, Han Zhou wrote:On Thu, Jul 23, 2020 at 3:43

Re: [ovs-discuss] OVN: ovn-sbctl backoff

2020-07-23 Thread Han Zhou
On Thu, Jul 23, 2020 at 3:43 PM Tony Liu wrote: > > Hi, > > In case of ovsdb cluster, when I run ovn-sbctl, it connects to the unix socket of local sb-db. > If local sb-db is not the leader, ovn-sbctl tries another server to look for the leader. > How does ovn-sbctl connect to another server? By

[ovs-discuss] OVN: ovn-sbctl backoff

2020-07-23 Thread Tony Liu
Hi, In case of ovsdb cluster, when I run ovn-sbctl, it connects to the unix socket of local sb-db. If local sb-db is not the leader, ovn-sbctl tries another server to look for the leader. How does ovn-sbctl connect to another server? By which connection? How does ovn-sbctl know the connection?