Re: [devel] [PATCH 1/1] osaf: add example config for etcd [#2784]
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; anders.wid...@ericsson.com Cc: opensaf-devel@lists.sourceforge.net; Gary Lee 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 0..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=DwIBAg=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU=ysb3ibuJwVlYWC-frO_GUqxFuBLClnVPM-p8F-ODjFQ=; +ETCD_LISTEN_CLIENT_URLS="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A2379=DwIBAg=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU=EwKM9n3W2BWk4sFL3GfQQ4VKraDrsqr75jA-ncRaDRI=; +ETCD_INITIAL_ADVERTISE_PEER_URLS="https://urldefense.proofpoint.com/v2/url?u=http-3A__0.0.0.0-3A2380=DwIBAg=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU=ysb3ibuJwVlYWC-frO_GUqxFuBLClnVPM-p8F-ODjFQ=; +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=DwIBAg=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU=emd3BtY0LXcD2kf3V4ZiY8YEvJkUOERGEFzGKcEdDy0=; +ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster" +ETCD_ADVERTISE_CLIENT_URLS="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A2379=DwIBAg=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=xBh_3WtlS1YjXd3Bui_nVjh5qwhU2UamdAhSfqynLU4=NcTlL9cPPPsyINUV-DQMQSmFULCWBHUmnI9D5e6fpPU=EwKM9n3W2BWk4sFL3GfQQ4VKraDrsqr75jA-ncRaDRI=; + +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
Re: [devel] [PATCH 1/1] osaf: add example config for etcd [#2784]
Yes. Actually the whole plugins directory should be added to src/osaf/Makefile.am I will add this in the push. +EXTRA_DIST += \ + src/osaf/consensus/plugins/etcd.plugin \ + src/osaf/consensus/plugins/sample.plugin \ + src/osaf/consensus/plugins/README.etcd + On 08/03/18 02:09, Anders Widell wrote: Ack with comment: I think the file should be called README.etcd instead of etcd.readme. Shouldn't it be added to the Makefile as well? regards, Anders Widell On 03/07/2018 04:42 AM, Gary Lee wrote: --- 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 0..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="http://0.0.0.0:2380; +ETCD_LISTEN_CLIENT_URLS="http://localhost:2379; +ETCD_INITIAL_ADVERTISE_PEER_URLS="http://0.0.0.0:2380; +ETCD_INITIAL_CLUSTER="SC-1=http://x.x.x.x:2380,SC-2=http://x.x.x.x:2380,PL-3=http://x.x.x.x:2380,PL-4=http://x.x.x.x:2380,PL-5=http://x.x.x.x:2380; +ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster" +ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379; + +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. -- 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
Re: [devel] [PATCH 1/1] osaf: add example config for etcd [#2784]
Ack with comment: I think the file should be called README.etcd instead of etcd.readme. Shouldn't it be added to the Makefile as well? regards, Anders Widell On 03/07/2018 04:42 AM, Gary Lee wrote: --- 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 0..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="http://0.0.0.0:2380; +ETCD_LISTEN_CLIENT_URLS="http://localhost:2379; +ETCD_INITIAL_ADVERTISE_PEER_URLS="http://0.0.0.0:2380; +ETCD_INITIAL_CLUSTER="SC-1=http://x.x.x.x:2380,SC-2=http://x.x.x.x:2380,PL-3=http://x.x.x.x:2380,PL-4=http://x.x.x.x:2380,PL-5=http://x.x.x.x:2380; +ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster" +ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379; + +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. -- 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
[devel] [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 0..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="http://0.0.0.0:2380; +ETCD_LISTEN_CLIENT_URLS="http://localhost:2379; +ETCD_INITIAL_ADVERTISE_PEER_URLS="http://0.0.0.0:2380; +ETCD_INITIAL_CLUSTER="SC-1=http://x.x.x.x:2380,SC-2=http://x.x.x.x:2380,PL-3=http://x.x.x.x:2380,PL-4=http://x.x.x.x:2380,PL-5=http://x.x.x.x:2380; +ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster" +ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379; + +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