Hi David

There are some docs AndersW wrote in these tickets, for background info:

https://sourceforge.net/p/opensaf/tickets/64/
https://sourceforge.net/p/opensaf/tickets/2795/

You have to decide whether your etcd cluster is internal or external to your 
OpenSAF cluster.

Basically, there are hooks in the OpenSAF code to obtain a "lock" in etcd 
before a node is promoted to Active.
The sample etcd3.plugin assumes there's an etcd instance running locally on 
each SC.

The configuration is in fmd.conf

# To enable split brain prevention, change to 1
export FMS_SPLIT_BRAIN_PREVENTION=1

# Full path to key-value store plugin
export FMS_KEYVALUE_STORE_PLUGIN_CMD=/full/path/to/etcd3.plugin

Gary

________________________________
From: Hoyt, David <dh...@rbbn.com>
Sent: 28 May 2020 23:53
To: opensaf-users@lists.sourceforge.net <opensaf-users@lists.sourceforge.net>
Subject: [users] opensaf and etcd

Hi all,



I see opensaf has etcd plugins, and a README file that describes installing 
etcd, but I'm not clear on how opensaf actually works with etcd. Has anyone 
made use of  this utility? Are there examples?



Normally, an opensaf controller starts and broadcasts the UDP message to see if 
it can become the active controller. Basically, if it's the only one currently 
in the cluster, it becomes active.



Now, if opensaf is configured to use etcd, does it still broadcast the UDP 
message or does it communicate with etcd and try and get the lock file?

Thus, if it gets the lock file, it becomes active.



If the active controller goes down for some reason, normally, the standby 
becomes active. Now, with etcd, how does this interaction work?

Does the standby still become active and then it has to take ownership of the 
etcd lock file?

Yet, the old active would still own it.



Do I have to write code to bridge the gap between opensaf and etcd, using the 
plugins, or does opensaf already have the code in place to do this interaction 
once etcd is enabled?

Again, some examples would help in the understanding of how opensaf makes use 
of etcd.



Regards,

David


-----------------------------------------------------------------------------------------------------------------------
Notice: This e-mail together with any attachments may contain information of 
Ribbon Communications Inc. that
is confidential and/or proprietary for the sole use of the intended recipient.  
Any review, disclosure, reliance or
distribution by others or forwarding without express permission is strictly 
prohibited.  If you are not the intended
recipient, please notify the sender immediately and then delete all copies, 
including any attachments.
-----------------------------------------------------------------------------------------------------------------------

_______________________________________________
Opensaf-users mailing list
Opensaf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-users

_______________________________________________
Opensaf-users mailing list
Opensaf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to