Browse Source

doc: doc addition/fix for discovery-srv flag

Xiang Li 11 years ago
parent
commit
ee7f23d0d5
3 changed files with 7 additions and 3 deletions
  1. 4 0
      Documentation/2.0/configuration.md
  2. 2 2
      etcdmain/config.go
  3. 1 1
      etcdmain/help.go

+ 4 - 0
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.
 + Discovery URL used to bootstrap the cluster.
 + default: none
 + default: none
 
 
+##### -discovery-srv
++ DNS srv domain used to bootstrap the cluster.
++ default: none
+
 ##### -discovery-fallback
 ##### -discovery-fallback
 + Expected behavior ("exit" or "proxy") when discovery services fails.
 + Expected behavior ("exit" or "proxy") when discovery services fails.
 + default: "proxy"
 + default: "proxy"

+ 2 - 2
etcdmain/config.go

@@ -139,14 +139,14 @@ func NewConfig() *config {
 	// clustering
 	// 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: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.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, ", ")))
 	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 {
 	if err := cfg.fallback.Set(fallbackFlagProxy); err != nil {
 		// Should never happen.
 		// Should never happen.
 		log.Panicf("unexpected error setting up discovery-fallback flag: %v", err)
 		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.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.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.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")
 	fs.Var(cfg.clusterState, "initial-cluster-state", "Initial cluster configuration for bootstrapping")

+ 1 - 1
etcdmain/help.go

@@ -46,7 +46,7 @@ clustering flags:
 	--discovery-proxy ''
 	--discovery-proxy ''
 		HTTP proxy to use for traffic to discovery service.
 		HTTP proxy to use for traffic to discovery service.
 	--discovery-srv ''
 	--discovery-srv ''
-		dns srv domain name used to bootstrap the cluster.
+		dns srv domain used to bootstrap the cluster.
 
 
 
 
 proxy flags:
 proxy flags: