From ee7f23d0d585d963f05bf2fc1224decf52681e8e Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Mon, 22 Dec 2014 12:10:04 -0800 Subject: [PATCH] doc: doc addition/fix for discovery-srv flag --- Documentation/2.0/configuration.md | 4 ++++ etcdmain/config.go | 4 ++-- etcdmain/help.go | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/2.0/configuration.md b/Documentation/2.0/configuration.md index c7e23218b..8e545d377 100644 --- a/Documentation/2.0/configuration.md +++ b/Documentation/2.0/configuration.md @@ -75,6 +75,10 @@ To start etcd automatically using custom settings at startup in Linux, using a [ + Discovery URL used to bootstrap the cluster. + default: none +##### -discovery-srv ++ DNS srv domain used to bootstrap the cluster. ++ default: none + ##### -discovery-fallback + Expected behavior ("exit" or "proxy") when discovery services fails. + default: "proxy" diff --git a/etcdmain/config.go b/etcdmain/config.go index 00fb61053..a138071a9 100644 --- a/etcdmain/config.go +++ b/etcdmain/config.go @@ -139,14 +139,14 @@ func NewConfig() *config { // clustering fs.Var(flags.NewURLsValue("http://localhost:2380,http://localhost:7001"), "initial-advertise-peer-urls", "List of this member's peer URLs to advertise to the rest of the cluster") fs.Var(flags.NewURLsValue("http://localhost:2379,http://localhost:4001"), "advertise-client-urls", "List of this member's client URLs to advertise to the rest of the cluster") - fs.StringVar(&cfg.durl, "discovery", "", "Discovery service used to bootstrap the cluster") + fs.StringVar(&cfg.durl, "discovery", "", "Discovery service used to bootstrap the initial cluster") fs.Var(cfg.fallback, "discovery-fallback", fmt.Sprintf("Valid values include %s", strings.Join(cfg.fallback.Values, ", "))) if err := cfg.fallback.Set(fallbackFlagProxy); err != nil { // Should never happen. log.Panicf("unexpected error setting up discovery-fallback flag: %v", err) } fs.StringVar(&cfg.dproxy, "discovery-proxy", "", "HTTP proxy to use for traffic to discovery service") - fs.StringVar(&cfg.dnsCluster, "discovery-srv", "", "Bootstrap initial cluster via DNS domain") + fs.StringVar(&cfg.dnsCluster, "discovery-srv", "", "DNS domain used to bootstrap initial cluster") fs.StringVar(&cfg.initialCluster, "initial-cluster", "default=http://localhost:2380,default=http://localhost:7001", "Initial cluster configuration for bootstrapping") fs.StringVar(&cfg.initialClusterToken, "initial-cluster-token", "etcd-cluster", "Initial cluster token for the etcd cluster during bootstrap") fs.Var(cfg.clusterState, "initial-cluster-state", "Initial cluster configuration for bootstrapping") diff --git a/etcdmain/help.go b/etcdmain/help.go index 70aecb6b3..df8a30b75 100644 --- a/etcdmain/help.go +++ b/etcdmain/help.go @@ -46,7 +46,7 @@ clustering flags: --discovery-proxy '' HTTP proxy to use for traffic to discovery service. --discovery-srv '' - dns srv domain name used to bootstrap the cluster. + dns srv domain used to bootstrap the cluster. proxy flags: