Hi Gary,

Ack, with some comments

1) The current example that you have given is for static etcd cluster 
configuration
   In the Cloud environment, the Cluster will be growing and shrinking 
dynamically, accordingly we might need to add or remove new nodes to the etcd 
cluster
   It will be better to document how to add or remove new nodes to the already 
existing etcd cluster.  

2) In general etcd cluster should be using different interface then OpenSAF 
Cluster, this has to be mentioned.  
    
3) Etcd has to be started before OpenSAF Cluster, Please document this

The comments 2 & 3 are not specific to etcd, they are genric for any plugin, 
you can update in the PR doc

Thanks,
Ravi

-----Original Message-----
From: Gary Lee [mailto:gary....@dektech.com.au] 
Sent: Wednesday, March 07, 2018 9:13 AM
To: Ravi Sekhar Reddy Konda <ravisekhar.ko...@oracle.com>; 
anders.wid...@ericsson.com
Cc: opensaf-devel@lists.sourceforge.net; Gary Lee <gary....@dektech.com.au>
Subject: [PATCH 1/1] osaf: add example config for etcd [#2784]

---
 src/osaf/consensus/plugins/etcd.readme | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 src/osaf/consensus/plugins/etcd.readme

diff --git a/src/osaf/consensus/plugins/etcd.readme 
b/src/osaf/consensus/plugins/etcd.readme
new file mode 100644
index 000000000..bdfa3fa19
--- /dev/null
+++ b/src/osaf/consensus/plugins/etcd.readme
@@ -0,0 +1,32 @@
+Example etcd configuration
+==========================
+
+This document describes how to install and configure etcd on each node 
+of an OpenSAF cluster. Note: it is also possible to run etcd outside 
+the OpenSAF cluster, or on a subset of the cluster.
+
+etcd is generally available as a binary package in Linux distributions.
+
+For example, on Ubuntu:
+
+sudo apt-get install etcd
+
+Locate etcd.conf for your distribution. For example, it is located at 
+/etc/default/etcd.conf on Ubuntu 17.10.
+
+The configuration below should help you get an initial etcd cluster 
+running on a five node cluster.
+
+ETCD_LISTEN_PEER_URLS="https://urldefense.proofpoint.com/v2/url?u=http-3A__0.0.0.0-3A2380&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4&m=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU&s=ysb3ibuJwVlYWC-frO_GUqxFuBLClnVPM-p8F-ODjFQ&e=";
+ETCD_LISTEN_CLIENT_URLS="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A2379&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4&m=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU&s=EwKM9n3W2BWk4sFL3GfQQ4VKraDrsqr75jA-ncRaDRI&e=";
+ETCD_INITIAL_ADVERTISE_PEER_URLS="https://urldefense.proofpoint.com/v2/url?u=http-3A__0.0.0.0-3A2380&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4&m=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU&s=ysb3ibuJwVlYWC-frO_GUqxFuBLClnVPM-p8F-ODjFQ&e=";
+ETCD_INITIAL_CLUSTER="SC-1=https://urldefense.proofpoint.com/v2/url?u=http-3A__x.x.x.x-3A2380-2CSC-2D2-3Dhttp-3A__x.x.x.x-3A2380-2CPL-2D3-3Dhttp-3A__x.x.x.x-3A2380-2CPL-2D4-3Dhttp-3A__x.x.x.x-3A2380-2CPL-2D5-3Dhttp-3A__x.x.x.x-3A2380&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4&m=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU&s=emd3BtY0LXcD2kf3V4ZiY8YEvJkUOERGEFzGKcEdDy0&e=";
+ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
+ETCD_ADVERTISE_CLIENT_URLS="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A2379&d=DwIBAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4&m=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU&s=EwKM9n3W2BWk4sFL3GfQQ4VKraDrsqr75jA-ncRaDRI&e=";
+
+Replace x.x.x.x with appropriate IP addresses.
+
+A sample etcd v2 plugin is provided. It assumes etcd is running locally.
+
+If you have configured etcd to run elsewhere, please add the 
+'--endpoints' option to etcdctl in the plugin.
--
2.14.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to