On Thu, Jul 23, 2020 at 3:43 PM Tony Liu <tonyliu0...@hotmail.com> 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 which connection?
> How does ovn-sbctl know the connection?
> Or the local sb-db asks to be the leader to respond ovn-sbctl?
> I can't figure out how it works from verbose messages.
> Any help to clarify is appreciated!
>
>
> Thanks!
>
> Tony

If you don't intentionally try to connect to the leader, you can use
ovn-sbctl --no-leader-only ... to avoid the retry.
If you want to avoid typing this option every time, you can export
OVN_SBCTL_OPTIONS"="--no-leader-only", and then just run ovn-sbctl ...
(does this answer your question?)

Thanks,
Han
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to